diff options
| author | Josh Stone <jistone@redhat.com> | 2017-08-03 15:42:05 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2017-08-03 15:42:05 -0700 |
| commit | ced1fda5659d324c9f4f98968de2bc893c456aa4 (patch) | |
| tree | 84b658e49062b60465089e7c1e1cac6025537aa9 /src/bootstrap | |
| parent | 1636a2cf41d79630ecc94f9a8b6d9e8bb501b048 (diff) | |
| download | rust-ced1fda5659d324c9f4f98968de2bc893c456aa4.tar.gz rust-ced1fda5659d324c9f4f98968de2bc893c456aa4.zip | |
Exclude Windows from LLVM_LINK_LLVM_DYLIB
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/native.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 595f90be1dd..ce0052a5fb6 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -125,11 +125,19 @@ impl Step for Llvm { .define("WITH_POLLY", "OFF") .define("LLVM_ENABLE_TERMINFO", "OFF") .define("LLVM_ENABLE_LIBEDIT", "OFF") - .define("LLVM_LINK_LLVM_DYLIB", "ON") .define("LLVM_PARALLEL_COMPILE_JOBS", build.jobs().to_string()) .define("LLVM_TARGET_ARCH", target.split('-').next().unwrap()) .define("LLVM_DEFAULT_TARGET_TRIPLE", target); + + // 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") { + cfg.define("LLVM_LINK_LLVM_DYLIB", "ON"); + } + if target.contains("msvc") { cfg.define("LLVM_USE_CRT_DEBUG", "MT"); cfg.define("LLVM_USE_CRT_RELEASE", "MT"); |
