[Lldb-commits] [lldb] c0f1dcf - [lldb/Test] Pass the lldb_tool_dir when setting the lldb-repro substitutions
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 16 13:56:23 PDT 2020
Author: Jonas Devlieghere
Date: 2020-06-16T13:56:16-07:00
New Revision: c0f1dcf31ee853c33e214d54f12658cf852bf288
URL: https://github.com/llvm/llvm-project/commit/c0f1dcf31ee853c33e214d54f12658cf852bf288
DIFF: https://github.com/llvm/llvm-project/commit/c0f1dcf31ee853c33e214d54f12658cf852bf288.diff
LOG: [lldb/Test] Pass the lldb_tool_dir when setting the lldb-repro substitutions
Otherwise LIT can't find the lldb-repro script in standalone builds.
Added:
Modified:
lldb/test/Shell/helper/toolchain.py
Removed:
################################################################################
diff --git a/lldb/test/Shell/helper/toolchain.py b/lldb/test/Shell/helper/toolchain.py
index 99e04b2b6e35..64a0c6671516 100644
--- a/lldb/test/Shell/helper/toolchain.py
+++ b/lldb/test/Shell/helper/toolchain.py
@@ -72,8 +72,7 @@ def use_lldb_substitutions(config):
_disallow(config, 'debugserver')
_disallow(config, 'platformserver')
- llvm_config.add_tool_substitutions(primary_tools,
- [config.lldb_tools_dir])
+ llvm_config.add_tool_substitutions(primary_tools, [config.lldb_tools_dir])
def _use_msvc_substitutions(config):
# If running from a Visual Studio Command prompt (e.g. vcvars), this will
@@ -169,4 +168,4 @@ def use_lldb_repro_substitutions(config, mode):
command=FindTool('lldb-repro'),
extra_args=[mode, '-S', lldb_init]),
]
- llvm_config.add_tool_substitutions(substitutions)
+ llvm_config.add_tool_substitutions(substitutions, [config.lldb_tools_dir])
More information about the lldb-commits
mailing list