================
@@ -444,7 +444,8 @@ endif ()
# Determine HOST_LINK_VERSION on Darwin.
set(HOST_LINK_VERSION "" CACHE STRING "Host linker version on Darwin")
-if (APPLE AND NOT HOST_LINK_VERSION AND NOT CMAKE_LINKER MATCHES ".*lld.*")
+get_filename_component(CLANG_LINKER_NAME "${CMAKE_LINKER}" NAME)
+if (APPLE AND NOT HOST_LINK_VERSION AND NOT CLANG_LINKER_NAME MATCHES "lld")
get_darwin_linker_version(HOST_LINK_VERSION)
set(HOST_LINK_VERSION "${HOST_LINK_VERSION}" CACHE STRING "Host linker
version on Darwin" FORCE)
endif()
----------------
daniel-petrovic wrote:
nit: maybe unset(CLANG_LINKER_NAME) after if to make this more local ?
https://github.com/llvm/llvm-project/pull/242747
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits