Skip to content

Commit a84ff2b

Browse files
committed
Use LLVM_USE_LINKER instead of LLVM_ENABLE_LLD
This avoids a conflict if llvm.thin-lto=true is combined with an explicit llvm.use-linker=lld.
1 parent e066dea commit a84ff2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl Step for Llvm {
201201
if builder.config.llvm_thin_lto {
202202
cfg.define("LLVM_ENABLE_LTO", "Thin");
203203
if !target.contains("apple") {
204-
cfg.define("LLVM_ENABLE_LLD", "ON");
204+
cfg.define("LLVM_USE_LINKER", "lld");
205205
}
206206
}
207207

0 commit comments

Comments
 (0)