summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Cabrera <carlo.antonio.cabrera@gmail.com>2022-09-14 07:57:39 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-14 13:34:14 (GMT)
commita54e25b547989cb790bde61f9dfbb6775e8feb87 (patch)
tree1b974168187bcae46cb966ac7607e648684224a0
parent0a9ce1ec3cf34b9098c5c2726956c0bd5191151b (diff)
downloadCMake-a54e25b547989cb790bde61f9dfbb6775e8feb87.zip
CMake-a54e25b547989cb790bde61f9dfbb6775e8feb87.tar.gz
CMake-a54e25b547989cb790bde61f9dfbb6775e8feb87.tar.bz2
BinUtils: Avoid the 'ld.lld' ELF linker on Apple platforms
`ld.lld` is an ELF linker, so we should never set `CMAKE_LINKER` to this when targeting an Apple platform.
-rw-r--r--Modules/CMakeFindBinUtils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index a6bd0d1..2ac8879 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -170,7 +170,7 @@ else()
if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL Clang)
if("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_SIMULATE_ID}" STREQUAL "xMSVC")
list(PREPEND _CMAKE_LINKER_NAMES "lld-link")
- else()
+ elseif(NOT APPLE)
list(PREPEND _CMAKE_LINKER_NAMES "ld.lld")
endif()
if(APPLE)