[PATCH] D122109: [CMake][Clang] Skip host link version detection for lld on Darwin
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 20 18:00:55 PDT 2022
phosek created this revision.
phosek added reviewers: smeenai, int3, oontvoo, thakis.
Herald added a subscriber: mgorny.
Herald added a project: All.
phosek requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122109
Files:
clang/CMakeLists.txt
Index: clang/CMakeLists.txt
===================================================================
--- clang/CMakeLists.txt
+++ clang/CMakeLists.txt
@@ -403,7 +403,7 @@
# 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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122109.416811.patch
Type: text/x-patch
Size: 392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220321/f8c2b912/attachment.bin>
More information about the cfe-commits
mailing list