Skip to content

Commit a54f264

Browse files
committed
include coverage tool
1 parent b8ecb65 commit a54f264

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,16 @@ def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None
147147
dists += extra_dists
148148

149149
if not os.environ.get("CI"):
150+
graalpython_args.insert(0, "--llvm.enableLVI=true")
150151
# Try eagerly to include tools for convenience when running Python
151152
if not mx.suite("tools", fatalIfMissing=False):
152153
SUITE.import_suite("tools", version=None, urlinfos=None, in_subdir=True)
153154
if mx.suite("tools", fatalIfMissing=False):
154-
if os.path.exists(mx.suite("tools").dependency("CHROMEINSPECTOR").path):
155-
# CHROMEINSPECTOR was built, put it on the classpath
156-
dists.append('CHROMEINSPECTOR')
157-
graalpython_args.insert(0, "--llvm.enableLVI=true")
155+
for tool in ["CHROMEINSPECTOR", "TRUFFLE_COVERAGE"]:
156+
if os.path.exists(mx.suite("tools").dependency(tool).path):
157+
dists.append(tool)
158158
else:
159-
mx.logv("CHROMEINSPECTOR was not built, not including it automatically")
159+
mx.logv("%s was not built, not including it automatically" % tool)
160160

161161
graalpython_args.insert(0, '--experimental-options=true')
162162

0 commit comments

Comments
 (0)