aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-06-23 18:00:48 +0000
committerAndrew Trick <atrick@apple.com>2011-06-23 18:00:48 +0000
commit72d91dd6e484cd321bf5256b511cb8ec97bb7dff (patch)
tree2f3aac8abf806ec585295e80aa3794254bddf25e
parent1b76a7f21b8046536fcdb7728d6975dc93f85834 (diff)
downloadllvm-72d91dd6e484cd321bf5256b511cb8ec97bb7dff.zip
llvm-72d91dd6e484cd321bf5256b511cb8ec97bb7dff.tar.gz
llvm-72d91dd6e484cd321bf5256b511cb8ec97bb7dff.tar.bz2
cmake+lit: final cleanup related to the recent churn
llvm-svn: 133730
-rw-r--r--clang/test/CMakeLists.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt
index 701ede9..0a01e8e 100644
--- a/clang/test/CMakeLists.txt
+++ b/clang/test/CMakeLists.txt
@@ -28,6 +28,7 @@ set(CLANG_TEST_DIRECTORIES
set(LLVM_SOURCE_DIR "${LLVM_MAIN_SRC_DIR}")
set(LLVM_BINARY_DIR "${LLVM_BINARY_DIR}")
+set(LLVM_BUILD_MODE "%(build_mode)s")
set(LLVM_TOOLS_DIR "${LLVM_TOOLS_BINARY_DIR}/%(build_config)s")
set(LLVM_LIBS_DIR "${LLVM_BINARY_DIR}/lib/%(build_config)s")
set(CLANG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..")
@@ -38,16 +39,10 @@ else()
set(ENABLE_SHARED 0)
endif(BUILD_SHARED_LIBS)
-# lit.site.cfg uses the config-time build mode
-set(LLVM_BUILD_MODE "${LLVM_BUILD_MODE}")
-
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
-# Unit/lit.site.cfg substitutes the runtime build_mode
-set(LLVM_BUILD_MODE "%(build_mode)s")
-
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg