Skip to content

Commit 249c4a3

Browse files
committed
Try to avoid transient "forgot to run mx build" errors
1 parent de49b18 commit 249c4a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,8 @@ def run(self, args, env=None, cwd=None, **kwargs):
20212021
env = env.copy() if env else os.environ.copy()
20222022
env.update(self.subject.getBuildEnv())
20232023
args.insert(0, '--PosixModuleBackend=java')
2024-
rc = do_run_python(args, env=env, cwd=cwd, minimal=True, out=self.PrefixingOutput(self.subject.name, mx.log), err=self.PrefixingOutput(self.subject.name, mx.log_error), **kwargs)
2024+
jdk = mx.get_jdk() # Don't get JVMCI, it might not have finished building by this point
2025+
rc = do_run_python(args, jdk=jdk, env=env, cwd=cwd, minimal=True, out=self.PrefixingOutput(self.subject.name, mx.log), err=self.PrefixingOutput(self.subject.name, mx.log_error), **kwargs)
20252026

20262027
shutil.rmtree(cwd) # remove the temporary build files
20272028
# if we're just running style tests, this is allowed to fail

0 commit comments

Comments
 (0)