[llvm-commits] [llvm] r78753 - /llvm/trunk/cmake/modules/GetTargetTriple.cmake

Oscar Fuentes ofv at wanadoo.es
Tue Aug 11 17:04:12 PDT 2009


Author: ofv
Date: Tue Aug 11 19:04:12 2009
New Revision: 78753

URL: http://llvm.org/viewvc/llvm-project?rev=78753&view=rev
Log:
CMake: target triple for MSVC on Windows 64.

Modified:
    llvm/trunk/cmake/modules/GetTargetTriple.cmake

Modified: llvm/trunk/cmake/modules/GetTargetTriple.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/GetTargetTriple.cmake?rev=78753&r1=78752&r2=78753&view=diff

==============================================================================
--- llvm/trunk/cmake/modules/GetTargetTriple.cmake (original)
+++ llvm/trunk/cmake/modules/GetTargetTriple.cmake Tue Aug 11 19:04:12 2009
@@ -3,7 +3,11 @@
 
 function( get_target_triple var )
   if( MSVC )
-    set( ${var} "i686-pc-win32" PARENT_SCOPE )
+    if( CMAKE_CL_64 )
+      set( ${var} "x86_64-pc-win32" PARENT_SCOPE )
+    else()
+      set( ${var} "i686-pc-win32" PARENT_SCOPE )
+    endif()
   else( MSVC )
     set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
     execute_process(COMMAND sh ${config_guess}





More information about the llvm-commits mailing list