]> granicus.if.org Git - clang/commitdiff
CMake: Generate LIT site configuration file for Clang tests, which Daniel will probab...
authorDouglas Gregor <dgregor@apple.com>
Wed, 16 Sep 2009 22:30:48 +0000 (22:30 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 16 Sep 2009 22:30:48 +0000 (22:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82086 91177308-0d34-0410-b5e6-96231b3b80d8

test/CMakeLists.txt
test/lit.site.cfg.in [new file with mode: 0644]

index 58e73682f6f199e2c644e045a79000f877133f1f..e154c0c4d5fa9922f7b4666e3347ad58a2882d94 100644 (file)
@@ -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/test/lit.site.cfg.in b/test/lit.site.cfg.in
new file mode 100644 (file)
index 0000000..dfb0657
--- /dev/null
@@ -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")