LLD is not supported on Darwin
Don't enable LLD when LTO is enabled on Darwin.
This commit is contained in:
parent
2975a3c4be
commit
eb8e4265ab
1 changed files with 4 additions and 2 deletions
|
|
@ -156,8 +156,10 @@ impl Step for Llvm {
|
|||
.define("LLVM_DEFAULT_TARGET_TRIPLE", target);
|
||||
|
||||
if builder.config.llvm_thin_lto && !emscripten {
|
||||
cfg.define("LLVM_ENABLE_LTO", "Thin")
|
||||
.define("LLVM_ENABLE_LLD", "ON");
|
||||
cfg.define("LLVM_ENABLE_LTO", "Thin");
|
||||
if !target.contains("apple") {
|
||||
cfg.define("LLVM_ENABLE_LLD", "ON");
|
||||
}
|
||||
}
|
||||
|
||||
// By default, LLVM will automatically find OCaml and, if it finds it,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue