Skip to content

Commit 0bc1623

Browse files
committed
Fix compilation of native images when Truffle compilation is disabled
1 parent 115fcac commit 0bc1623

File tree

1 file changed

+3
-0
lines changed
  • graalpython/lib-graalpython/modules/standalone

1 file changed

+3
-0
lines changed

graalpython/lib-graalpython/modules/standalone/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,9 @@ def build_binary(self, ni, jc):
543543
"-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime",
544544
"-Dpolyglot.engine.WarnInterpreterOnly=false",
545545
]
546+
# Remove once GR-48563 is fixed
547+
if "Oracle GraalVM" in subprocess.check_output([ni, "--version"], text=True):
548+
cmd.append("-H:-OptConditionalMoves")
546549
cmd += [
547550
"--no-fallback",
548551
"-H:-CopyLanguageResources",

0 commit comments

Comments
 (0)