summaryrefslogtreecommitdiffstats
path: root/clang/test/lit.cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/lit.cfg.py')
-rw-r--r--clang/test/lit.cfg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index 6fa7ef66fc9..5b11691f447 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -58,7 +58,7 @@ tool_dirs = [config.clang_tools_dir, config.llvm_tools_dir]
tools = [
'c-index-test', 'clang-check', 'clang-diff', 'clang-format', 'clang-tblgen',
- 'opt', 'hmaptool',
+ 'opt',
ToolSubst('%clang_func_map', command=FindTool(
'clang-func-mapping'), unresolved='ignore'),
]
@@ -69,6 +69,10 @@ if config.clang_examples:
llvm_config.add_tool_substitutions(tools, tool_dirs)
+config.substitutions.append(
+ ('%hmaptool', '%s %s' % (config.python_executable,
+ os.path.join(config.llvm_tools_dir, 'hmaptool'))))
+
# Plugins (loadable modules)
# TODO: This should be supplied by Makefile or autoconf.
if sys.platform in ['win32', 'cygwin']:
OpenPOWER on IntegriCloud