mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
Merge topic 'binutils-llvm-ar-apple' into release-3.23
fee36b7a78 BinUtils: Restore llvm-ar fallback on Apple platforms
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7077
This commit is contained in:
@@ -173,8 +173,13 @@ else()
|
||||
else()
|
||||
list(PREPEND _CMAKE_LINKER_NAMES "ld.lld")
|
||||
endif()
|
||||
if(NOT APPLE)
|
||||
if(APPLE)
|
||||
# llvm-ar does not generate a symbol table that the Apple ld64 linker accepts.
|
||||
# FIXME(#23333): We still need to consider 'llvm-ar' as a fallback because
|
||||
# the 'APPLE' definition may be based on the host in this context, and a
|
||||
# cross-compiling toolchain may not have 'ar'.
|
||||
list(APPEND _CMAKE_AR_NAMES "llvm-ar")
|
||||
else()
|
||||
list(PREPEND _CMAKE_AR_NAMES "llvm-ar")
|
||||
endif()
|
||||
list(PREPEND _CMAKE_RANLIB_NAMES "llvm-ranlib")
|
||||
|
||||
Reference in New Issue
Block a user