[lit] Make lit-lldb-init configurable by CMake
This makes the `lit-lldb-init` file configurable by CMake. This matters to us downstream in Swift, where we want to set environment variables with the `env` command for every test. Differential revision: https://reviews.llvm.org/D63679 llvm-svn: 364112
This commit is contained in:
parent
592a193285
commit
1c6fc7d70d
|
@ -81,6 +81,10 @@ configure_lit_site_cfg(
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/Suite/lit.site.cfg.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/Suite/lit.site.cfg)
|
||||
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lit-lldb-init.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lit-lldb-init)
|
||||
|
||||
if(NOT LLDB_BUILT_STANDALONE)
|
||||
list(APPEND LLDB_TEST_DEPS
|
||||
FileCheck
|
||||
|
|
|
@ -38,12 +38,12 @@ def use_lldb_substitutions(config):
|
|||
ToolSubst('%lldb',
|
||||
command=FindTool('lldb'),
|
||||
extra_args=['--no-lldbinit', '-S',
|
||||
os.path.join(config.test_source_root,
|
||||
os.path.join(config.test_exec_root,
|
||||
'lit-lldb-init')]),
|
||||
ToolSubst('%lldb-init',
|
||||
command=FindTool('lldb'),
|
||||
extra_args=['-S',
|
||||
os.path.join(config.test_source_root,
|
||||
os.path.join(config.test_exec_root,
|
||||
'lit-lldb-init')]),
|
||||
lldbmi,
|
||||
ToolSubst('%debugserver',
|
||||
|
|
Loading…
Reference in New Issue