aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-02-05 21:37:51 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-02-05 21:37:51 +0000
commitba43a4da6a0d8d02e25c2c80719f83034f56f0fb (patch)
tree3a8520696a0eb2ae25a6968bc10353f65f7c7294
parent839e61abb02b86ec78bf9de132247614796cf8d8 (diff)
Support running tests from the VS IDE and XCode.
Untested, but should work :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124975 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index c4237eb051..4c15e8f5f8 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -50,10 +50,12 @@ if(PYTHONINTERP_FOUND)
if( LLVM_MAIN_SRC_DIR )
set(LIT "${LLVM_SOURCE_DIR}/utils/lit/lit.py")
else()
- set(LIT "${PATH_TO_LLVM_BUILD}/bin/llvm-lit")
+ set(LIT "${PATH_TO_LLVM_BUILD}/bin/${CMAKE_CFG_INTDIR}/llvm-lit")
endif()
- set(CLANG_TEST_EXTRA_ARGS "--path=${CLANG_BINARY_DIR}/bin")
+ if( PATH_TO_LLVM_BUILD )
+ set(CLANG_TEST_EXTRA_ARGS "--path=${CLANG_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}")
+ endif()
option(CLANG_TEST_USE_VG "Run Clang tests under Valgrind" OFF)
if(CLANG_TEST_USE_VG)