Skip to content

Commit 1e3f4c0

Browse files
committed
Do not set the --ruby.launcher in polyglotOptions
* It would fail when exec()-ing to JVM as it is an experimental option. * We'll rely on the launcher being RUBY_HOME/bin/truffleruby on --jvm for now, until an API to query the launcher path is added in Launcher.
1 parent d03b1e1 commit 1e3f4c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ protected List<String> preprocessArguments(List<String> args, Map<String, String
102102
}
103103

104104
if (isAOT()) {
105-
final String launcher = setRubyLauncher();
106-
if (launcher != null) {
107-
polyglotOptions.put(OptionsCatalog.LAUNCHER.getName(), launcher);
108-
}
105+
setRubyLauncher();
109106
}
110107

111108
} catch (CommandLineException commandLineException) {

0 commit comments

Comments
 (0)