File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1318,6 +1318,7 @@ def mspec(*args)
1318
1318
def test_specs ( command , *args )
1319
1319
env_vars = { }
1320
1320
options = [ ]
1321
+ running_local_build = false
1321
1322
1322
1323
case command
1323
1324
when 'run'
@@ -1353,6 +1354,7 @@ def test_specs(command, *args)
1353
1354
options << '-t' << find_launcher ( true )
1354
1355
options << '-T--native'
1355
1356
else
1357
+ running_local_build = true
1356
1358
options += %w[ -T--vm.ea -T--vm.esa -T--vm.Xmx2G ]
1357
1359
options << "-T--core-load-path=#{ TRUFFLERUBY_DIR } /src/main/ruby"
1358
1360
options << "-T--polyglot" # For Truffle::Interop.export specs
@@ -1384,8 +1386,9 @@ def test_specs(command, *args)
1384
1386
options += %w[ --format specdoc ]
1385
1387
end
1386
1388
1387
- if args . any? { |arg | arg . include? 'optional/capi' } or
1388
- args . include? ( ':capi' ) or args . include? ( ':truffle_capi' ) or args . include? ( ':library_cext' )
1389
+ if running_local_build && (
1390
+ args . any? { |arg | arg . include? 'optional/capi' } ||
1391
+ !( args & %w[ :capi :truffle_capi :library_cext ] ) . empty? )
1389
1392
build ( "cexts" )
1390
1393
end
1391
1394
You can’t perform that action at this time.
0 commit comments