Skip to content

Commit fc52ebd

Browse files
committed
Use the MRI feature for disabling RUBYOPT/TRUFFLERUBYOPT
* Otherwise, it would be seen as an experimental option when exec()-ing to JVM from a native launcher.
1 parent 945a6aa commit fc52ebd

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
@@ -89,7 +89,7 @@ protected List<String> preprocessArguments(List<String> args, Map<String, String
8989
* therefore this is not done on JVM.
9090
*/
9191
final int index = argumentCommandLineParser.getLastInterpreterArgumentIndex();
92-
args.add(index, "--read_rubyopt=false");
92+
args.add(index, "--disable=rubyopt");
9393
args.addAll(index + 1, rubyoptArgs);
9494
args.addAll(index + 1 + rubyoptArgs.size(), trufflerubyoptArgs);
9595
}

0 commit comments

Comments
 (0)