summaryrefslogtreecommitdiff
path: root/cmake/config-ix.cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2008-10-26 00:47:52 +0000
committerOscar Fuentes <ofv@wanadoo.es>2008-10-26 00:47:52 +0000
commit579e43a44ac118d432cb053470dbb977dfffe9db (patch)
tree9f786b6d351990ff83aecdf60c0c6c21600e1c10 /cmake/config-ix.cmake
parent9a20afd7006635928a15470d2b942068f48f20a9 (diff)
CMake: GetTargetTriple: new module for determining the target
triple. Assign to LLVM_HOSTTRIPLE so it figures in config.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/config-ix.cmake')
-rwxr-xr-xcmake/config-ix.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 58db002d79c..363975d19a3 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -52,6 +52,10 @@ check_symbol_exists(mallinfo malloc.h HAVE_MALLINFO)
check_symbol_exists(pthread_mutex_lock pthread.h HAVE_PTHREAD_MUTEX_LOCK)
check_symbol_exists(strtoll stdlib.h HAVE_STRTOLL)
+include(GetTargetTriple)
+get_target_triple(LLVM_HOSTTRIPLE)
+message(STATUS "LLVM_HOSTTRIPLE: ${LLVM_HOSTTRIPLE}")
+
if( MINGW )
# tbi: Comprobar que existen las librerias:
set(HAVE_LIBIMAGEHLP 1)