Support running tests from the VS IDE and XCode.

Untested, but should work :)

llvm-svn: 124975
This commit is contained in:
Oscar Fuentes 2011-02-05 21:37:51 +00:00
parent 1b6a38e3c6
commit 82a0d26294
1 changed files with 4 additions and 2 deletions

View File

@ -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)