]> granicus.if.org Git - clang/commitdiff
[test] Fix %hmaptool path for standalone builds
authorMichal Gorny <mgorny@gentoo.org>
Wed, 1 Aug 2018 20:38:22 +0000 (20:38 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Wed, 1 Aug 2018 20:38:22 +0000 (20:38 +0000)
Fix %hmaptool path to refer to clang_tools_dir instead of
llvm_tools_dir, in order to fix standalone builds.  The tool is built
as part of clang, so it won't be found in installed LLVM tools.

Differential Revision: https://reviews.llvm.org/D50156

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338627 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg.py

index ad30988c17961279d53dc47f9844ffb2943cfe39..c962b41723e58871418c8fa3ae5867d52f3f5eb4 100644 (file)
@@ -71,7 +71,7 @@ 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'))))
+                             os.path.join(config.clang_tools_dir, 'hmaptool'))))
 
 # Plugins (loadable modules)
 # TODO: This should be supplied by Makefile or autoconf.