Skip to content

Commit 061de01

Browse files
steve-sDSouzaM
authored andcommitted
Forward python.EnableBytecodeDSLInterpreter to subprocesses
1 parent 375210d commit 061de01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell/GraalPythonMain.java

+5
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,11 @@ protected List<String> preprocessArguments(List<String> givenArgs, Map<String, S
415415
}
416416
}
417417

418+
if (!ImageInfo.inImageCode() && Boolean.getBoolean("python.EnableBytecodeDSLInterpreter")) {
419+
// forward the property on JVM
420+
addRelaunchArg("--vm.Dpython.EnableBytecodeDSLInterpreter=true");
421+
}
422+
418423
// According to CPython if no arguments are given, they contain an empty string.
419424
if (programArgs.isEmpty()) {
420425
programArgs.add("");

0 commit comments

Comments
 (0)