forked from dgraph-io/badger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): Fix nocgo builds. (dgraph-io#1493)
Building Badger without Cgo fails because of references to Zstd in table/builder.go introduced in dgraph-io#1459 . $ CGO_ENABLED=0 go build -v . github.com/DataDog/zstd go build github.com/DataDog/zstd: build constraints exclude all Go files in /home/dmai/go/pkg/mod/github.com/!data!dog/[email protected] Moving zstd.CompressBound to y/zstd_cgo.go and y/zstd_nocgo.go fixes non-Cgo builds. As is already the case, non-Cgo builds with compression must use snappy, not Zstd, or calling y.ZSTDCompressBound without Cgo will panic.
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 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
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
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