mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-21 06:52:10 +00:00
[CMake][Clang] Skip host link version detection for lld on Darwin
When lld is being used as host linker, skip version detection since lld version cannot be used interchangeably with ld64 version and lld is already handled specially in Clang driver. Differential Revision: https://reviews.llvm.org/D122109
This commit is contained in:
parent
a619072c61
commit
c624cc2527
@ -403,7 +403,7 @@ endif ()
|
||||
|
||||
# Determine HOST_LINK_VERSION on Darwin.
|
||||
set(HOST_LINK_VERSION)
|
||||
if (APPLE)
|
||||
if (APPLE AND NOT CMAKE_LINKER MATCHES ".*lld.*")
|
||||
set(LD_V_OUTPUT)
|
||||
execute_process(
|
||||
COMMAND sh -c "${CMAKE_LINKER} -v 2>&1 | head -1"
|
||||
|
Loading…
Reference in New Issue
Block a user