[PATCH] D41155: [cmake] Determine MSVC host triple correctly when cross-compiling

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 13:12:02 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL320615: [cmake] Determine MSVC host triple correctly when cross-compiling (authored by smeenai, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D41155

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


Index: llvm/trunk/cmake/modules/GetHostTriple.cmake
===================================================================
--- llvm/trunk/cmake/modules/GetHostTriple.cmake
+++ llvm/trunk/cmake/modules/GetHostTriple.cmake
@@ -3,7 +3,7 @@
 
 function( get_host_triple var )
   if( MSVC )
-    if( CMAKE_CL_64 )
+    if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
       set( value "x86_64-pc-win32" )
     else()
       set( value "i686-pc-win32" )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41155.126821.patch
Type: text/x-patch
Size: 431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171213/d5ebd95c/attachment.bin>


More information about the llvm-commits mailing list