summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-07-02 20:14:59 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-07-02 20:14:59 +0000
commit56e9b0d28ed8d496a0cbd7fd0f22fbcf2f64acfa (patch)
tree94f3e6867cb6d3263d8b3765a45ad37a9eaa0a74 /test
parent8f4783c6a5ae1e95aeb58b41da9707310e60ab5b (diff)
downloadclang-56e9b0d28ed8d496a0cbd7fd0f22fbcf2f64acfa.tar.gz
Switch from using a lit.cfg-generator variable to the real variable in
the standalone mode. We've changed scoping and sequencing of variables being defined and that cause this to start to be unset breaking some cmake users. Thanks to Jordan Rose for the report. The fix also makes the condition on the preceding line much more sensible. =D git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ebf6643217..f57343dcbf 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -51,7 +51,7 @@ else()
include(FindPythonInterp)
if(PYTHONINTERP_FOUND)
if( LLVM_MAIN_SRC_DIR )
- set(LIT "${LLVM_SOURCE_DIR}/utils/lit/lit.py")
+ set(LIT "${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py")
else()
set(LIT "${PATH_TO_LLVM_BUILD}/bin/${CMAKE_CFG_INTDIR}/llvm-lit")
# Installed LLVM does not contain ${CMAKE_CFG_INTDIR} in paths.