File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -710,6 +710,7 @@ def run_ruby(*args)
710
710
case arg
711
711
when '--native'
712
712
native = true
713
+ vm_args << '--native'
713
714
when '--no-core-load-path'
714
715
core_load_path = false
715
716
when '--graal'
@@ -1311,6 +1312,7 @@ def test_specs(command, *args)
1311
1312
if args . delete ( '--native' )
1312
1313
verify_native_bin!
1313
1314
options << '-t' << find_launcher ( true )
1315
+ options << '-T--native'
1314
1316
else
1315
1317
options += %w[ -T--vm.ea -T--vm.esa -T--vm.Xmx2G ]
1316
1318
options << "-T--core.load_path=#{ TRUFFLERUBY_DIR } /src/main/ruby"
@@ -1747,7 +1749,7 @@ def benchmark(*args)
1747
1749
1748
1750
run_args = [ ]
1749
1751
1750
- if args . delete ( '--native' ) || ( ENV . has_key? ( 'JT_BENCHMARK_RUBY' ) && ( ENV [ 'JT_BENCHMARK_RUBY' ] == find_launcher ( true ) ) )
1752
+ if args . include? ( '--native' ) || ( ENV . has_key? ( 'JT_BENCHMARK_RUBY' ) && ( ENV [ 'JT_BENCHMARK_RUBY' ] == find_launcher ( true ) ) )
1751
1753
# We already have a mechanism for setting the Ruby to benchmark, but elsewhere we use AOT_BIN with the "--native" flag.
1752
1754
# Favor JT_BENCHMARK_RUBY to AOT_BIN, but try both.
1753
1755
benchmark_ruby ||= find_launcher ( true )
You can’t perform that action at this time.
0 commit comments