diff options
Diffstat (limited to 'cmake/modules/GetTargetTriple.cmake')
-rw-r--r-- | cmake/modules/GetTargetTriple.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/modules/GetTargetTriple.cmake b/cmake/modules/GetTargetTriple.cmake index c915a9a6ae607..87262add59d3a 100644 --- a/cmake/modules/GetTargetTriple.cmake +++ b/cmake/modules/GetTargetTriple.cmake @@ -3,7 +3,13 @@ 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() + elseif( MINGW AND NOT MSYS ) + set( ${var} "i686-pc-mingw32" PARENT_SCOPE ) else( MSVC ) set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess) execute_process(COMMAND sh ${config_guess} |