diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:07:51 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:07:51 +0000 |
commit | 0ab04bc27e4e367356b4c7f851c7e143a5799871 (patch) | |
tree | f32e669a97f78fb963bb99d8966e5ad8024b8b95 /llvm/test/CMakeLists.txt | |
parent | Cleanup some unused RUN lines. (diff) | |
download | llvm-project-0ab04bc27e4e367356b4c7f851c7e143a5799871.tar.gz llvm-project-0ab04bc27e4e367356b4c7f851c7e143a5799871.tar.bz2 llvm-project-0ab04bc27e4e367356b4c7f851c7e143a5799871.zip |
Switch to using 'lit.site.cfg.in' for the site config template for Unit tests,
and generate it for CMake builds as well.
llvm-svn: 86451
Diffstat (limited to 'llvm/test/CMakeLists.txt')
-rw-r--r-- | llvm/test/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CMakeLists.txt b/llvm/test/CMakeLists.txt index 9f37037e02f5..681e50d0a87f 100644 --- a/llvm/test/CMakeLists.txt +++ b/llvm/test/CMakeLists.txt @@ -18,6 +18,13 @@ if(PYTHONINTERP_FOUND) -e "s#\@LLVMGCC_DIR\@##" ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in > ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg + COMMAND sed -e "s#\@LLVM_SOURCE_DIR\@#${LLVM_MAIN_SRC_DIR}#" + -e "s#\@LLVM_BINARY_DIR\@#${LLVM_BINARY_DIR}#" + -e "s#\@LLVM_TOOLS_DIR\@#${LLVM_TOOLS_PATH}/${CMAKE_CFG_INTDIR}#" + -e "s#\@LLVMGCC_DIR\@##" + -e "s#\@LLVM_BUILD_MODE\@#${CMAKE_CFG_INTDIR}#" + ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in > + ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg COMMAND ${PYTHON_EXECUTABLE} ${LLVM_SOURCE_DIR}/utils/lit/lit.py -sv |