[llvm] bd16b1c - Passthrough LLVM_USE_LLD LLVM_USE_LINKER into runtimes
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 16 23:31:39 PST 2021
Author: Vitaly Buka
Date: 2021-12-16T23:31:35-08:00
New Revision: bd16b1ce78a65c5b699401400dd3a31969a4a4d5
URL: https://github.com/llvm/llvm-project/commit/bd16b1ce78a65c5b699401400dd3a31969a4a4d5
DIFF: https://github.com/llvm/llvm-project/commit/bd16b1ce78a65c5b699401400dd3a31969a4a4d5.diff
LOG: Passthrough LLVM_USE_LLD LLVM_USE_LINKER into runtimes
Fixes https://github.com/llvm/llvm-project/issues/42339
Reviewed By: phosek, sylvestre.ledru
Differential Revision: https://reviews.llvm.org/D115852
Added:
Modified:
llvm/runtimes/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 7e5f9154ff76b..fcf4ddda8608f 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -242,6 +242,8 @@ function(runtime_default_target)
${COMMON_CMAKE_ARGS}
${RUNTIMES_CMAKE_ARGS}
PASSTHROUGH_PREFIXES LLVM_ENABLE_RUNTIMES
+ LLVM_USE_LLD
+ LLVM_USE_LINKER
${ARG_PREFIXES}
EXTRA_TARGETS ${extra_targets}
${test_targets}
@@ -345,6 +347,8 @@ function(runtime_register_target name target)
-DLLVM_RUNTIMES_TARGET=${name}
${COMMON_CMAKE_ARGS}
${${name}_extra_args}
+ PASSTHROUGH_PREFIXES LLVM_USE_LLD
+ LLVM_USE_LINKER
EXTRA_TARGETS ${${name}_extra_targets}
${${name}_test_targets}
USE_TOOLCHAIN
More information about the llvm-commits
mailing list