Skip to content

Commit 744e464

Browse files
committed
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
1 parent 6ad5e83 commit 744e464

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

sqlite_cgo.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build cgo
2-
// +build cgo
1+
//go:build cgo && !pure
2+
// +build cgo,!pure
33

44
package sqlite
55

sqlite_cgo_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build cgo
2-
// +build cgo
1+
//go:build cgo && !pure
2+
// +build cgo,!pure
33

44
package sqlite
55

sqlite_pure.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !cgo
2-
// +build !cgo
1+
//go:build !cgo || (cgo && pure)
2+
// +build !cgo cgo,pure
33

44
package sqlite
55

sqlite_pure_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !cgo
2-
// +build !cgo
1+
//go:build !cgo || (cgo && pure)
2+
// +build !cgo cgo,pure
33

44
package sqlite
55

0 commit comments

Comments
 (0)