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"
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"
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits