diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2009-08-12 00:04:12 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2009-08-12 00:04:12 +0000 |
commit | 9f817031f1011d75cbd8ab5c833547ac42500268 (patch) | |
tree | 1b77d40c4604599395dc8bddf677abe09308da66 /cmake/modules | |
parent | 1095f2ae261d231a63d329b0ebbf6eaf566ff429 (diff) | |
download | external_llvm-9f817031f1011d75cbd8ab5c833547ac42500268.zip external_llvm-9f817031f1011d75cbd8ab5c833547ac42500268.tar.gz external_llvm-9f817031f1011d75cbd8ab5c833547ac42500268.tar.bz2 |
CMake: target triple for MSVC on Windows 64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78753 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/GetTargetTriple.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/modules/GetTargetTriple.cmake b/cmake/modules/GetTargetTriple.cmake index c915a9a..5708d62 100644 --- a/cmake/modules/GetTargetTriple.cmake +++ b/cmake/modules/GetTargetTriple.cmake @@ -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} |