[PATCH] D110035: [CMake] Add detection for the mold linker in AddLLVM.cmake.
Shivam Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 28 05:19:40 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5b125a49ba9f: [CMake] Add detection for the mold linker in AddLLVM.cmake. (authored by fcambus, committed by xgupta).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110035/new/
https://reviews.llvm.org/D110035
Files:
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -193,7 +193,10 @@
OUTPUT_VARIABLE stdout
ERROR_VARIABLE stderr
)
- if("${stdout}" MATCHES "GNU gold")
+ if("${stdout}" MATCHES "^mold")
+ set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
+ message(STATUS "Linker detection: mold")
+ elseif("${stdout}" MATCHES "GNU gold")
set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
set(LLVM_LINKER_IS_GOLD YES CACHE INTERNAL "")
message(STATUS "Linker detection: GNU Gold")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110035.375532.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210928/b221d0fd/attachment.bin>
More information about the llvm-commits
mailing list