[PATCH] D63834: [cmake] Allow config.guess to be run with MSYS on Windows

Pengxuan Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 11:39:08 PDT 2019


pzheng created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
pzheng added a reviewer: compnerd.

With r363420, config.guess can no longer be run with MSYS on Windows and this
patch should be able to fix this particular case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63834

Files:
  llvm/cmake/modules/GetHostTriple.cmake


Index: llvm/cmake/modules/GetHostTriple.cmake
===================================================================
--- llvm/cmake/modules/GetHostTriple.cmake
+++ llvm/cmake/modules/GetHostTriple.cmake
@@ -15,7 +15,7 @@
       set( value "i686-pc-windows-gnu" )
     endif()
   else( MSVC )
-    if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
+    if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows AND NOT MSYS)
       message(WARNING "unable to determine host target triple")
     else()
       set(config_guess ${LLVM_MAIN_SRC_DIR}/cmake/config.guess)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63834.206718.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190626/441acc0d/attachment.bin>


More information about the llvm-commits mailing list