[llvm] r341135 - Remove LIT_SITE_CFG_IN_FOOTER, llvm
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 30 15:13:34 PDT 2018
Author: nico
Date: Thu Aug 30 15:13:34 2018
New Revision: 341135
URL: http://llvm.org/viewvc/llvm-project?rev=341135&view=rev
Log:
Remove LIT_SITE_CFG_IN_FOOTER, llvm
It's always replaced with the same (short) static string, so just put that
there directly.
No intended behavior change.
https://reviews.llvm.org/D51357
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
llvm/trunk/test/lit.site.cfg.py.in
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=341135&r1=341134&r2=341135&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Aug 30 15:13:34 2018
@@ -1255,10 +1255,6 @@ function(configure_lit_site_cfg site_in
set(TARGET_TRIPLE "\"+config.target_triple+\"")
endif()
- string(CONCAT LIT_SITE_CFG_IN_FOOTER
- "import lit.llvm\n"
- "lit.llvm.initialize(lit_config, config)\n")
-
configure_file(${site_in} ${site_out} @ONLY)
if (EXISTS "${ARG_MAIN_CONFIG}")
set(PYTHON_STATEMENT "map_config('${ARG_MAIN_CONFIG}', '${site_out}')")
Modified: llvm/trunk/test/lit.site.cfg.py.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.site.cfg.py.in?rev=341135&r1=341134&r2=341135&view=diff
==============================================================================
--- llvm/trunk/test/lit.site.cfg.py.in (original)
+++ llvm/trunk/test/lit.site.cfg.py.in Thu Aug 30 15:13:34 2018
@@ -54,7 +54,8 @@ except KeyError:
key, = e.args
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key))
- at LIT_SITE_CFG_IN_FOOTER@
+import lit
+lit.llvm.initialize(lit_config, config)
# Let the main config do the real work.
lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg.py")
More information about the llvm-commits
mailing list