Use LLVM_LINK_LLVM_DYLIB only on linux-gnu and apple-darwin
This commit is contained in:
@@ -133,8 +133,8 @@ impl Step for Llvm {
|
|||||||
// This setting makes the LLVM tools link to the dynamic LLVM library,
|
// This setting makes the LLVM tools link to the dynamic LLVM library,
|
||||||
// which saves both memory during parallel links and overall disk space
|
// 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
|
// 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.
|
// just a local concern. However, it doesn't work well everywhere.
|
||||||
if !target.contains("windows") {
|
if target.contains("linux-gnu") || target.contains("apple-darwin") {
|
||||||
cfg.define("LLVM_LINK_LLVM_DYLIB", "ON");
|
cfg.define("LLVM_LINK_LLVM_DYLIB", "ON");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user