Only do config-time substitution of LLVM_BUILD_MODE in

test/lit.site.cfg, not Unit/test/lit.site.cfg.

llvm-svn: 133609
This commit is contained in:
Andrew Trick 2011-06-22 05:44:01 +00:00
parent ec0c4e666e
commit fc0bb5855b
1 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,6 @@ 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}/..")
@ -39,10 +38,16 @@ 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