summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAlex Denisov <1101.debian@gmail.com>2016-04-16 06:47:41 +0000
committerAlex Denisov <1101.debian@gmail.com>2016-04-16 06:47:41 +0000
commitd5cee4aada8c5eb66580af6caae7eeba83b4a6f9 (patch)
treedd8da8f7692f2efe1b65c2826a3282824b4474bc /llvm
parent59ae85450360f2f38eb26ca561be96a723edc5ab (diff)
downloadbcm5719-llvm-d5cee4aada8c5eb66580af6caae7eeba83b4a6f9.tar.gz
bcm5719-llvm-d5cee4aada8c5eb66580af6caae7eeba83b4a6f9.zip
Replace hardcoded comment at 'lit.site.cfg.in'
At the moment almost every lit.site.cfg.in contains two lines comment: ## Autogenerated by LLVM/Clang configuration. # Do not edit! The patch adds variable LIT_SITE_CFG_IN_HEADER, that is replaced from configure_lit_site_cfg with the note and some useful information. llvm-svn: 266515
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake2
-rw-r--r--llvm/test/Unit/lit.site.cfg.in4
-rw-r--r--llvm/test/lit.site.cfg.in4
3 files changed, 6 insertions, 4 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 294e39b77a8..da0182c0c19 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -983,6 +983,8 @@ function(configure_lit_site_cfg input output)
set(HOST_CXX "${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1}")
set(HOST_LDFLAGS "${CMAKE_EXE_LINKER_FLAGS}")
+ set(LIT_SITE_CFG_IN_HEADER "## Autogenerated from ${input}\n## Do not edit!")
+
configure_file(${input} ${output} @ONLY)
endfunction()
diff --git a/llvm/test/Unit/lit.site.cfg.in b/llvm/test/Unit/lit.site.cfg.in
index dd8de489513..9d736f473ce 100644
--- a/llvm/test/Unit/lit.site.cfg.in
+++ b/llvm/test/Unit/lit.site.cfg.in
@@ -1,7 +1,7 @@
+@LIT_SITE_CFG_IN_HEADER@
+
import sys
-## Autogenerated by LLVM/Clang configuration.
-# Do not edit!
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
config.llvm_obj_root = "@LLVM_BINARY_DIR@"
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
diff --git a/llvm/test/lit.site.cfg.in b/llvm/test/lit.site.cfg.in
index 13f5372ef7e..47699e25840 100644
--- a/llvm/test/lit.site.cfg.in
+++ b/llvm/test/lit.site.cfg.in
@@ -1,7 +1,7 @@
+@LIT_SITE_CFG_IN_HEADER@
+
import sys
-## Autogenerated by LLVM/Clang configuration.
-# Do not edit!
config.host_triple = "@LLVM_HOST_TRIPLE@"
config.target_triple = "@TARGET_TRIPLE@"
config.llvm_src_root = "@LLVM_SOURCE_DIR@"
OpenPOWER on IntegriCloud