mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 07:32:36 +00:00
[lit] Deduplicate logic in toolchain.py
No need to compute the path of lit-lldb-init twice. llvm-svn: 364113
This commit is contained in:
parent
1c6fc7d70d
commit
892f022ec2
@ -34,17 +34,15 @@ def use_lldb_substitutions(config):
|
||||
if config.llvm_libs_dir:
|
||||
build_script_args.append('--libs-dir={0}'.format(config.llvm_libs_dir))
|
||||
|
||||
lldb_init = os.path.join(config.test_exec_root, 'lit-lldb-init')
|
||||
|
||||
primary_tools = [
|
||||
ToolSubst('%lldb',
|
||||
command=FindTool('lldb'),
|
||||
extra_args=['--no-lldbinit', '-S',
|
||||
os.path.join(config.test_exec_root,
|
||||
'lit-lldb-init')]),
|
||||
extra_args=['--no-lldbinit', '-S', lldb_init]),
|
||||
ToolSubst('%lldb-init',
|
||||
command=FindTool('lldb'),
|
||||
extra_args=['-S',
|
||||
os.path.join(config.test_exec_root,
|
||||
'lit-lldb-init')]),
|
||||
extra_args=['-S', lldb_init]),
|
||||
lldbmi,
|
||||
ToolSubst('%debugserver',
|
||||
command=FindTool(dsname),
|
||||
|
Loading…
Reference in New Issue
Block a user