mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03: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:
1 parent
0a9ce1ec3c
commit
a54e25b547
1 file changed
+1
-1
@@ -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