Skip to content

Commit e050908

Browse files
committed
Fix overriding the --launcher option
1 parent 2855d3e commit e050908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/launcher/java/org/truffleruby/launcher/RubyLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private static void debugPreInitialization() {
241241
}
242242

243243
private Context createContext(Context.Builder builder, CommandLineOptions config) {
244-
if (isAOT()) {
244+
if (isAOT() && !config.isSetInPolyglotOptions(OptionsCatalog.LAUNCHER.getName())) {
245245
final String launcher = ProcessProperties.getExecutableName();
246246
builder.option(OptionsCatalog.LAUNCHER.getName(), launcher);
247247
}

0 commit comments

Comments
 (0)