summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CMakeLists.txt4
-rw-r--r--clang/test/lit.site.cfg.in6
2 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt
index 58e73682f6f..e154c0c4d5f 100644
--- a/clang/test/CMakeLists.txt
+++ b/clang/test/CMakeLists.txt
@@ -60,3 +60,7 @@ if(PYTHONINTERP_FOUND)
DEPENDS clang clang-cc index-test
COMMENT "Running Clang regression tests")
endif()
+
+# Produce LIT site configuration file.
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
+ ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
diff --git a/clang/test/lit.site.cfg.in b/clang/test/lit.site.cfg.in
new file mode 100644
index 00000000000..dfb0657706d
--- /dev/null
+++ b/clang/test/lit.site.cfg.in
@@ -0,0 +1,6 @@
+## Autogenerated by LLVM/Clang configuration.
+# Do not edit!
+config.clang_obj_root = "@CLANG_BINARY_DIR@"
+
+# Let the main config do the real work.
+lit.load_config(config, "@LLVM_SOURCE_DIR@/lit.cfg")
OpenPOWER on IntegriCloud