Skip to content

Commit b2f247e

Browse files
committed
Explicitly disable zstd support
Make sure we don't pick up a libzstd.so dependency if it happens to be installed on the system.
1 parent e77ec2f commit b2f247e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/native.rs

+3
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ impl Step for Llvm {
325325
cfg.define("LLVM_PROFDATA_FILE", &path);
326326
}
327327

328+
// Disable zstd to avoid a dependency on libzstd.so.
329+
cfg.define("LLVM_ENABLE_ZSTD", "OFF");
330+
328331
if target != "aarch64-apple-darwin" && !target.contains("windows") {
329332
cfg.define("LLVM_ENABLE_ZLIB", "ON");
330333
} else {

0 commit comments

Comments
 (0)