Skip to content

Commit 525a66e

Browse files
kruskallRaduBerinde
authored andcommitted
feat: add pebblegozstd build tag to allow to configure zstd lib
Add a build tag that lets developers choose the zstd library. The current cgo implementation dramatically slows down builds and tests, and it blocks non‑cgo projects from running tests with the race detector unless they also switch the underlying library.
1 parent 52ed0eb commit 525a66e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/compression/zstd_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// of this source code is governed by a BSD-style license that can be found in
33
// the LICENSE file.
44

5-
//go:build cgo
5+
//go:build cgo && !pebblegozstd
66

77
package compression
88

internal/compression/zstd_nocgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// of this source code is governed by a BSD-style license that can be found in
33
// the LICENSE file.
44

5-
//go:build !cgo
5+
//go:build !cgo || pebblegozstd
66

77
package compression
88

0 commit comments

Comments
 (0)