1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

CMake: target triple for MSVC on Windows 64.

llvm-svn: 78753
This commit is contained in:
Oscar Fuentes 2009-08-12 00:04:12 +00:00
parent ec2e96e628
commit 9073cc3e0a

View File

@ -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}