use-gold-for-compiler-rt-when-set
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 8 Feb 2022 20:39:18 +0000 (20:39 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 8 Feb 2022 20:39:18 +0000 (20:39 +0000)
===================================================================

Gbp-Pq: Name use-gold-for-compiler-rt-when-set.diff

llvm/runtimes/CMakeLists.txt

index a24c0f6cec781b2bf3dba23db56dea912dc520cd..e7ecd8134cd81886e0abbfa3be507a7fdecf8866 100644 (file)
@@ -244,6 +244,8 @@ function(runtime_default_target)
                                       -DCMAKE_ASM_COMPILER_WORKS=ON
                                       ${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)
                                       -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
                                       -DLLVM_RUNTIMES_TARGET=${name}
                                       ${${name}_extra_args}
+                           PASSTHROUGH_PREFIXES LLVM_USE_LLD
+                                                LLVM_USE_LINKER
                            EXTRA_TARGETS ${${name}_extra_targets}
                                          ${${name}_test_targets}
                            USE_TOOLCHAIN