Skip to content

Commit 6dc4fe5

Browse files
committed
Set LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN for lld build as well
1 parent 4d7ff4e commit 6dc4fe5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/native.rs

+4
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,10 @@ impl Step for Lld {
949949
.define("LLVM_CONFIG_PATH", llvm_config_shim)
950950
.define("LLVM_INCLUDE_TESTS", "OFF");
951951

952+
if builder.config.llvm_allow_old_toolchain {
953+
cfg.define("LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN", "YES");
954+
}
955+
952956
// While we're using this horrible workaround to shim the execution of
953957
// llvm-config, let's just pile on more. I can't seem to figure out how
954958
// to build LLD as a standalone project and also cross-compile it at the

0 commit comments

Comments
 (0)