From de2e0b5e6d5aa7eccf62df17b86c31b39732bf86 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Tue, 1 Nov 2011 21:31:44 +0000 Subject: rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143501 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/config-ix.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cmake/config-ix.cmake') diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 18549a3b22..62699fa5aa 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -286,15 +286,14 @@ include(CheckCXXCompilerFlag) check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG) include(GetTargetTriple) -get_target_triple(LLVM_HOSTTRIPLE) +get_target_triple(LLVM_DEFAULT_TARGET_TRIPLE) -# FIXME: We don't distinguish the target and the host. :( -set(TARGET_TRIPLE "${LLVM_HOSTTRIPLE}") +set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}") # Determine the native architecture. string(TOLOWER "${LLVM_TARGET_ARCH}" LLVM_NATIVE_ARCH) if( LLVM_NATIVE_ARCH STREQUAL "host" ) - string(REGEX MATCH "^[^-]*" LLVM_NATIVE_ARCH ${LLVM_HOSTTRIPLE}) + string(REGEX MATCH "^[^-]*" LLVM_NATIVE_ARCH ${LLVM_DEFAULT_TARGET_TRIPLE}) endif () if (LLVM_NATIVE_ARCH MATCHES "i[2-6]86") -- cgit v1.2.3