File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -701,15 +701,16 @@ def run_ruby(*args)
701
701
702
702
native = false
703
703
graal = false
704
+ core_load_path = true
704
705
ruby_args = [ ]
705
- vm_args = [ core_load_path = "--core.load_path= #{ TRUFFLERUBY_DIR } /src/main/ruby" ]
706
+ vm_args = [ ]
706
707
707
708
while ( arg = args . shift )
708
709
case arg
709
710
when '--native'
710
711
native = true
711
712
when '--no-core-load-path'
712
- vm_args . delete core_load_path
713
+ core_load_path = false
713
714
when '--graal'
714
715
graal = true
715
716
when '--stress'
@@ -753,6 +754,10 @@ def run_ruby(*args)
753
754
754
755
ruby_args += args
755
756
757
+ if core_load_path
758
+ vm_args << "--experimental-options" << "--core.load_path=#{ TRUFFLERUBY_DIR } /src/main/ruby"
759
+ end
760
+
756
761
if graal
757
762
if ENV [ "RUBY_BIN" ] || native
758
763
# Assume that Graal is automatically set up if RUBY_BIN is set or using a native image.
@@ -1293,6 +1298,9 @@ def test_specs(command, *args)
1293
1298
if args . include? ( '-t' )
1294
1299
# Running specs on another Ruby, pass no options
1295
1300
else
1301
+ # For --core.load_path and --backtraces.hide_core_files
1302
+ options << "-T--experimental-options"
1303
+
1296
1304
if args . delete ( '--native' )
1297
1305
verify_native_bin!
1298
1306
options << '-t' << find_launcher ( true )
You can’t perform that action at this time.
0 commit comments