llvm-fix-lld-linker-check
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Mon, 9 May 2022 18:47:26 +0000 (19:47 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 9 May 2022 18:47:26 +0000 (19:47 +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 5a9480aa67681643a2b6831c47ea28d5d84ddc56..de417e3b380b62a1f4dc77d3b01cf74f503c4356 100644 (file)
@@ -197,7 +197,7 @@ if (NOT DEFINED LLVM_LINKER_DETECTED)
       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")