Browse Source

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.
Carlo Cabrera 3 years ago
parent
commit
a54e25b547
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/CMakeFindBinUtils.cmake

+ 1 - 1
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)