mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user