diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-08-08 18:04:45 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-08-08 18:04:45 +0000 |
commit | 9469dd3a717a0dbe45bf668903ed804f27028b0a (patch) | |
tree | 14e39d0544e28102b8831c3de2a7c1796d64f3b9 /cmake | |
parent | 6174fd7ed09e9d183d84fb3485a714c5b0c67e4a (diff) | |
download | external_llvm-9469dd3a717a0dbe45bf668903ed804f27028b0a.zip external_llvm-9469dd3a717a0dbe45bf668903ed804f27028b0a.tar.gz external_llvm-9469dd3a717a0dbe45bf668903ed804f27028b0a.tar.bz2 |
revert my previous patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 1fe009f..25d6211 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -291,7 +291,12 @@ check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG) include(GetHostTriple) get_host_triple(LLVM_HOST_TRIPLE) + +# By default, we target the host, but this can be overridden at CMake +# invocation time. +set(LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}") set(LLVM_HOSTTRIPLE "${LLVM_HOST_TRIPLE}") +set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}") # Determine the native architecture. string(TOLOWER "${LLVM_TARGET_ARCH}" LLVM_NATIVE_ARCH) @@ -319,8 +324,6 @@ elseif (LLVM_NATIVE_ARCH MATCHES "xcore") set(LLVM_NATIVE_ARCH XCore) elseif (LLVM_NATIVE_ARCH MATCHES "msp430") set(LLVM_NATIVE_ARCH MSP430) -elseif (LLVM_NATIVE_ARCH MATCHES "hexagon") - set(LLVM_NATIVE_ARCH Hexagon) else () message(FATAL_ERROR "Unknown architecture ${LLVM_NATIVE_ARCH}") endif () |