summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
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/cmake/modules
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/cmake/modules')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake2
1 files changed, 2 insertions, 0 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()
OpenPOWER on IntegriCloud