summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-02-23 11:28:40 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-02-23 11:28:40 +0000
commit7d83dc0424b9868415e63d11058c8a9fe26e5fd1 (patch)
treef1a73995ecb4f7adaa250733e2957586e8c100f1 /cmake
parent8fbc00b5bab870d3c756d40add9b0eb27827fb97 (diff)
downloadllvm-7d83dc0424b9868415e63d11058c8a9fe26e5fd1.tar.gz
llvm-7d83dc0424b9868415e63d11058c8a9fe26e5fd1.tar.bz2
llvm-7d83dc0424b9868415e63d11058c8a9fe26e5fd1.tar.xz
Export TARGET_TRIPLE on LLVM.cmake. It is necessary for running tests
on Clang when it builds using LLVM as an external library. Fixes PR9293. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/LLVM.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/LLVM.cmake b/cmake/modules/LLVM.cmake
index 0dc5058f63..9182afdf27 100644
--- a/cmake/modules/LLVM.cmake
+++ b/cmake/modules/LLVM.cmake
@@ -10,6 +10,8 @@ set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
+set(TARGET_TRIPLE "@TARGET_TRIPLE@")
+
set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)