[PATCH] D39601: [CMake] Allow for Solaris ld -V output on stdout

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 09:12:34 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL318532: [CMake] Allow for Solaris ld -V output on stdout (authored by mgorny).

Changed prior to commit:
  https://reviews.llvm.org/D39601?vs=121489&id=123358#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39601

Files:
  llvm/trunk/cmake/modules/AddLLVM.cmake


Index: llvm/trunk/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake
+++ llvm/trunk/cmake/modules/AddLLVM.cmake
@@ -169,7 +169,8 @@
   elseif("${stdout}" MATCHES "GNU ld")
     set(LLVM_LINKER_IS_GNULD ON)
     message(STATUS "Linker detection: GNU ld")
-  elseif("${stderr}" MATCHES "Solaris Link Editors")
+  elseif("${stderr}" MATCHES "Solaris Link Editors" OR
+         "${stdout}" MATCHES "Solaris Link Editors")
     set(LLVM_LINKER_IS_SOLARISLD ON)
     message(STATUS "Linker detection: Solaris ld")
   else()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39601.123358.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171117/9c11d253/attachment.bin>


More information about the llvm-commits mailing list