r338627 - [test] Fix %hmaptool path for standalone builds

Michal Gorny via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 1 13:38:22 PDT 2018

Author: mgorny
Date: Wed Aug  1 13:38:22 2018
New Revision: 338627

URL: http://llvm.org/viewvc/llvm-project?rev=338627&view=rev
[test] Fix %hmaptool path for standalone builds

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


Modified: cfe/trunk/test/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg.py?rev=338627&r1=338626&r2=338627&view=diff
--- cfe/trunk/test/lit.cfg.py (original)
+++ cfe/trunk/test/lit.cfg.py Wed Aug  1 13:38:22 2018
@@ -71,7 +71,7 @@ llvm_config.add_tool_substitutions(tools
     ('%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.

More information about the cfe-commits mailing list