[clang] [llvm] [CMake] Detect properly new linker introduced in Xcode 15 (PR #77806)

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 13:46:44 PST 2024


================
@@ -211,10 +211,10 @@ if (NOT DEFINED LLVM_LINKER_DETECTED AND NOT WIN32)
     )
 
   if(APPLE)
-    if("${stderr}" MATCHES "PROJECT:ld64")
+    if("${stderr}" MATCHES "PROGRAM:ld")
----------------
ldionne wrote:

I'm not certain I understand -- isn't this patch missing something so that it keeps working on pre Xcode 15 toolchains? Libc++ supports Xcode 15 only, but the rest of LLVM probably supports older versions as well?

https://github.com/llvm/llvm-project/pull/77806


More information about the cfe-commits mailing list