about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2017-08-04 00:13:11 -0700
committerJosh Stone <jistone@redhat.com>2017-08-04 00:13:11 -0700
commit6c46f4f11cdd56fcd12c86d121259c738b7a8376 (patch)
treea1561dc93c86772536461f5741e73ccb2ff1bea0
parentced1fda5659d324c9f4f98968de2bc893c456aa4 (diff)
downloadrust-6c46f4f11cdd56fcd12c86d121259c738b7a8376.tar.gz
rust-6c46f4f11cdd56fcd12c86d121259c738b7a8376.zip
Use LLVM_LINK_LLVM_DYLIB only on linux-gnu and apple-darwin
-rw-r--r--src/bootstrap/native.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index ce0052a5fb6..ee0eca5d482 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -133,8 +133,8 @@ impl Step for Llvm {
         // This setting makes the LLVM tools link to the dynamic LLVM library,
         // which saves both memory during parallel links and overall disk space
         // for the tools.  We don't distribute any of those tools, so this is
-        // just a local concern.  However, this doesn't seem to work on Windows.
-        if !target.contains("windows") {
+        // just a local concern.  However, it doesn't work well everywhere.
+        if target.contains("linux-gnu") || target.contains("apple-darwin") {
            cfg.define("LLVM_LINK_LLVM_DYLIB", "ON");
         }