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

This should fix NetBSD buildbots.

llvm-svn: 362574
This commit is contained in:
Artem Dergachev 2019-06-05 02:09:29 +00:00
parent cfb6c82172
commit 1611cc1cba

View 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']