-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable cgo when
pure
tag is passed
This enables running tests that require CGO like `go test -race` when using pure-go sqlite through passing `-tags pure` build flag
- Loading branch information
1 parent
6ad5e83
commit 744e464
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build cgo | ||
// +build cgo | ||
//go:build cgo && !pure | ||
// +build cgo,!pure | ||
|
||
package sqlite | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build cgo | ||
// +build cgo | ||
//go:build cgo && !pure | ||
// +build cgo,!pure | ||
|
||
package sqlite | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build !cgo | ||
// +build !cgo | ||
//go:build !cgo || (cgo && pure) | ||
// +build !cgo cgo,pure | ||
|
||
package sqlite | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
//go:build !cgo | ||
// +build !cgo | ||
//go:build !cgo || (cgo && pure) | ||
// +build !cgo cgo,pure | ||
|
||
package sqlite | ||
|
||
|