about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-08-05 09:47:52 +0200
committerNikita Popov <npopov@redhat.com>2022-08-09 12:39:59 +0200
commitb2f247e1bdc85cd06c19eccd580eae9501ee0235 (patch)
treec516cbcd09c1134ba2817a06fe7f1f7821a0ff2d /src
parente77ec2f482b297109d965f12880d9465d52921e6 (diff)
downloadrust-b2f247e1bdc85cd06c19eccd580eae9501ee0235.tar.gz
rust-b2f247e1bdc85cd06c19eccd580eae9501ee0235.zip
Explicitly disable zstd support
Make sure we don't pick up a libzstd.so dependency if it happens
to be installed on the system.
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/native.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index 4d548dbb638..8b50d5dc52b 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -325,6 +325,9 @@ impl Step for Llvm {
             cfg.define("LLVM_PROFDATA_FILE", &path);
         }
 
+        // Disable zstd to avoid a dependency on libzstd.so.
+        cfg.define("LLVM_ENABLE_ZSTD", "OFF");
+
         if target != "aarch64-apple-darwin" && !target.contains("windows") {
             cfg.define("LLVM_ENABLE_ZLIB", "ON");
         } else {