summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-08-19 14:25:53 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-08-19 14:26:18 (GMT)
commit76f1c9d598391d18b299e23984d02c210fd7b000 (patch)
tree541687a81cedc5cc9964179b8fd4ae8c048ca19e /Modules
parent0f67831ed33584525b13f5554641796d261a6b9b (diff)
parent788b7afff20a59bada4dbb21418d9f83290996c6 (diff)
downloadCMake-76f1c9d598391d18b299e23984d02c210fd7b000.zip
CMake-76f1c9d598391d18b299e23984d02c210fd7b000.tar.gz
CMake-76f1c9d598391d18b299e23984d02c210fd7b000.tar.bz2
Merge topic 'binutils-clang-fallback-ld'
788b7afff2 FindBinUtils: Fall back to ld for Clang without lld Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6457
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFindBinUtils.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index d0beac6..bb97f4a 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -165,9 +165,9 @@ else()
# Prepend toolchain-specific names.
if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL Clang)
if("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_SIMULATE_ID}" STREQUAL "xMSVC")
- set(_CMAKE_LINKER_NAMES "lld-link")
+ list(PREPEND _CMAKE_LINKER_NAMES "lld-link")
else()
- set(_CMAKE_LINKER_NAMES "ld.lld")
+ list(PREPEND _CMAKE_LINKER_NAMES "ld.lld")
endif()
list(PREPEND _CMAKE_AR_NAMES "llvm-ar")
list(PREPEND _CMAKE_RANLIB_NAMES "llvm-ranlib")