llvm-fix-lld-linker-check
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21:56 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 30 Oct 2024 20:56:13 +0000 (21:56 +0100)
remove regex anchor in lld linker detection to account for vendor, if
specified, being prepended to lld version string

Gbp-Pq: Name llvm-fix-lld-linker-check.diff

llvm/cmake/modules/AddLLVM.cmake

index 03f4e1f190fd984dd22a16bec8388de6aa69ef10..31caf531a930cbaa29b032f619e1855fb8790c1e 100644 (file)
@@ -249,7 +249,7 @@ if (NOT DEFINED LLVM_LINKER_DETECTED AND NOT WIN32)
       set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
       set(LLVM_LINKER_IS_GOLD YES CACHE INTERNAL "")
       message(STATUS "Linker detection: GNU Gold")
-    elseif("${stdout}" MATCHES "^LLD")
+    elseif("${stdout}" MATCHES "LLD")
       set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
       set(LLVM_LINKER_IS_LLD YES CACHE INTERNAL "")
       message(STATUS "Linker detection: LLD")