From 6dc4fe5fe8815b7a64cd58ae3f5a006b946e3330 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 28 Apr 2022 11:52:04 +0200 Subject: [PATCH] Set LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN for lld build as well --- src/bootstrap/native.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 09b8cbe9014..2f3236e720a 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -949,6 +949,10 @@ impl Step for Lld { .define("LLVM_CONFIG_PATH", llvm_config_shim) .define("LLVM_INCLUDE_TESTS", "OFF"); + if builder.config.llvm_allow_old_toolchain { + cfg.define("LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN", "YES"); + } + // While we're using this horrible workaround to shim the execution of // llvm-config, let's just pile on more. I can't seem to figure out how // to build LLD as a standalone project and also cross-compile it at the