Skip to content

Commit

Permalink
fix: enable cgo when pure tag is passed
Browse files Browse the repository at this point in the history
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
aymanbagabas committed Jul 5, 2023
1 parent 6ad5e83 commit 744e464
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sqlite_cgo.go
@@ -1,5 +1,5 @@
//go:build cgo
// +build cgo
//go:build cgo && !pure
// +build cgo,!pure

package sqlite

Expand Down
4 changes: 2 additions & 2 deletions sqlite_cgo_test.go
@@ -1,5 +1,5 @@
//go:build cgo
// +build cgo
//go:build cgo && !pure
// +build cgo,!pure

package sqlite

Expand Down
4 changes: 2 additions & 2 deletions sqlite_pure.go
@@ -1,5 +1,5 @@
//go:build !cgo
// +build !cgo
//go:build !cgo || (cgo && pure)
// +build !cgo cgo,pure

package sqlite

Expand Down
4 changes: 2 additions & 2 deletions sqlite_pure_test.go
@@ -1,5 +1,5 @@
//go:build !cgo
// +build !cgo
//go:build !cgo || (cgo && pure)
// +build !cgo cgo,pure

package sqlite

Expand Down

0 comments on commit 744e464

Please sign in to comment.