Skip to content

Commit

Permalink
Use LLVM_USE_LINKER instead of LLVM_ENABLE_LLD
Browse files Browse the repository at this point in the history
This avoids a conflict if llvm.thin-lto=true is combined with an
explicit llvm.use-linker=lld.
  • Loading branch information
nikic committed Jan 28, 2021
1 parent e066dea commit a84ff2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/native.rs
Expand Up @@ -201,7 +201,7 @@ impl Step for Llvm {
if builder.config.llvm_thin_lto {
cfg.define("LLVM_ENABLE_LTO", "Thin");
if !target.contains("apple") {
cfg.define("LLVM_ENABLE_LLD", "ON");
cfg.define("LLVM_USE_LINKER", "lld");
}
}

Expand Down

0 comments on commit a84ff2b

Please sign in to comment.