Skip to content

Commit 6c46f4f

Browse files
committed
Use LLVM_LINK_LLVM_DYLIB only on linux-gnu and apple-darwin
1 parent ced1fda commit 6c46f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/native.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ impl Step for Llvm {
133133
// This setting makes the LLVM tools link to the dynamic LLVM library,
134134
// which saves both memory during parallel links and overall disk space
135135
// for the tools. We don't distribute any of those tools, so this is
136-
// just a local concern. However, this doesn't seem to work on Windows.
137-
if !target.contains("windows") {
136+
// just a local concern. However, it doesn't work well everywhere.
137+
if target.contains("linux-gnu") || target.contains("apple-darwin") {
138138
cfg.define("LLVM_LINK_LLVM_DYLIB", "ON");
139139
}
140140

0 commit comments

Comments
 (0)