Skip to content

Commit d6dabb5

Browse files
committed
[GR-19874] when running benchmarks with a graalvm build, enhance the classpath if specified by the vm definition
PullRequest: graalpython/749
2 parents deed047 + 107aff3 commit d6dabb5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,14 @@ def run(self, cwd, args):
264264
host_vm = self.host_vm()
265265
if hasattr(host_vm, 'run_lang'): # this is a full GraalVM build
266266
with environ(self._env or {}):
267+
cp = []
268+
if self._cp_prefix:
269+
cp.append(self._cp_prefix)
270+
if self._cp_suffix:
271+
cp.append(self._cp_suffix)
272+
if len(cp) > 0:
273+
extra_polyglot_args.append("--vm.classpath="+":".join(cp))
274+
267275
return host_vm.run_lang('graalpython', extra_polyglot_args + args, cwd)
268276

269277
# Otherwise, we're running from the source tree

0 commit comments

Comments
 (0)