[llvm-commits] [llvm] r86419 - in /llvm/trunk/cmake: config-ix.cmake modules/GetTargetTriple.cmake
Daniel Dunbar
daniel at zuster.org
Sat Nov 7 15:52:27 PST 2009
Author: ddunbar
Date: Sat Nov 7 17:52:27 2009
New Revision: 86419
URL: http://llvm.org/viewvc/llvm-project?rev=86419&view=rev
Log:
Fix CMake reporting of target triple.
Modified:
llvm/trunk/cmake/config-ix.cmake
llvm/trunk/cmake/modules/GetTargetTriple.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=86419&r1=86418&r2=86419&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Sat Nov 7 17:52:27 2009
@@ -147,7 +147,6 @@
include(GetTargetTriple)
get_target_triple(LLVM_HOSTTRIPLE)
-message(STATUS "LLVM_HOSTTRIPLE: ${LLVM_HOSTTRIPLE}")
# FIXME: We don't distinguish the target and the host. :(
set(TARGET_TRIPLE "${LLVM_HOSTTRIPLE}")
Modified: llvm/trunk/cmake/modules/GetTargetTriple.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/GetTargetTriple.cmake?rev=86419&r1=86418&r2=86419&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/GetTargetTriple.cmake (original)
+++ llvm/trunk/cmake/modules/GetTargetTriple.cmake Sat Nov 7 17:52:27 2009
@@ -4,12 +4,12 @@
function( get_target_triple var )
if( MSVC )
if( CMAKE_CL_64 )
- set( ${var} "x86_64-pc-win32" PARENT_SCOPE )
+ set( value "x86_64-pc-win32" )
else()
- set( ${var} "i686-pc-win32" PARENT_SCOPE )
+ set( value "i686-pc-win32" )
endif()
elseif( MINGW AND NOT MSYS )
- set( ${var} "i686-pc-mingw32" PARENT_SCOPE )
+ set( value "i686-pc-mingw32" )
else( MSVC )
set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
execute_process(COMMAND sh ${config_guess}
@@ -19,7 +19,8 @@
if( NOT TT_RV EQUAL 0 )
message(FATAL_ERROR "Failed to execute ${config_guess}")
endif( NOT TT_RV EQUAL 0 )
- set( ${var} ${TT_OUT} PARENT_SCOPE )
- message(STATUS "Target triple: ${${var}}")
+ set( value ${TT_OUT} )
endif( MSVC )
+ set( ${var} ${value} PARENT_SCOPE )
+ message(STATUS "Target triple: ${value}")
endfunction( get_target_triple var )
More information about the llvm-commits
mailing list