r362574 - [analyzer] exploded-graph-rewriter: Pick up python from cmake in tests.

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 4 19:09:29 PDT 2019


Author: dergachev
Date: Tue Jun  4 19:09:29 2019
New Revision: 362574

URL: http://llvm.org/viewvc/llvm-project?rev=362574&view=rev
Log:
[analyzer] exploded-graph-rewriter: Pick up python from cmake in tests.

This should fix NetBSD buildbots.

Modified:
    cfe/trunk/test/Analysis/exploded-graph-rewriter/lit.local.cfg

Modified: cfe/trunk/test/Analysis/exploded-graph-rewriter/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/exploded-graph-rewriter/lit.local.cfg?rev=362574&r1=362573&r2=362574&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/exploded-graph-rewriter/lit.local.cfg (original)
+++ cfe/trunk/test/Analysis/exploded-graph-rewriter/lit.local.cfg Tue Jun  4 19:09:29 2019
@@ -1,3 +1,5 @@
+# -*- Python -*-
+
 import lit.util
 import lit.formats
 import os
@@ -6,8 +8,11 @@ use_lit_shell = os.environ.get("LIT_USE_
 config.test_format = lit.formats.ShTest(use_lit_shell == "0")
 
 config.substitutions.append(('%exploded_graph_rewriter',
-                             lit.util.which('exploded-graph-rewriter.py',
-                                            os.path.join(config.clang_src_dir,
-                                                         'utils', 'analyzer'))))
+                             '\'%s\' %s' % (
+                                 config.python_executable,
+                                 lit.util.which('exploded-graph-rewriter.py',
+                                                os.path.join(
+                                                    config.clang_src_dir,
+                                                    'utils', 'analyzer')))))
 
 config.suffixes = ['.dot']




More information about the cfe-commits mailing list