diff options
author | Brad King <brad.king@kitware.com> | 2021-08-19 14:25:53 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-08-19 14:26:18 (GMT) |
commit | 76f1c9d598391d18b299e23984d02c210fd7b000 (patch) | |
tree | 541687a81cedc5cc9964179b8fd4ae8c048ca19e /Modules | |
parent | 0f67831ed33584525b13f5554641796d261a6b9b (diff) | |
parent | 788b7afff20a59bada4dbb21418d9f83290996c6 (diff) | |
download | CMake-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.cmake | 4 |
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") |