]> granicus.if.org Git - clang/commitdiff
[analyzer] exploded-graph-rewriter: Pick up python from cmake in tests.
authorArtem Dergachev <artem.dergachev@gmail.com>
Wed, 5 Jun 2019 02:09:29 +0000 (02:09 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Wed, 5 Jun 2019 02:09:29 +0000 (02:09 +0000)
This should fix NetBSD buildbots.

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

test/Analysis/exploded-graph-rewriter/lit.local.cfg

index 1ebb25a4001a61fb9596afcf552d1c307bb7929d..7bc2e107f6423d2c6657aea20da7c06f85b0d5aa 100644 (file)
@@ -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_INTERNAL_SHELL")
 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']