@@ -449,7 +449,6 @@ def help
449
449
--no-sforceimports do not run sforceimports before building
450
450
parser build the parser
451
451
options build the options
452
- cexts build only the C extensions (part of "jt build")
453
452
graalvm build a minimal JVM-only GraalVM containing only TruffleRuby,
454
453
available by default in mxbuild/truffleruby-jvm,
455
454
the Ruby is symlinked into rbenv or chruby if available
@@ -562,8 +561,6 @@ def build(*options)
562
561
File . write ( yytables , File . read ( yytables ) . gsub ( 'package org.jruby.parser;' , 'package org.truffleruby.parser.parser;' ) )
563
562
when 'options'
564
563
sh 'tool/generate-options.rb'
565
- when "cexts" # Included in 'mx build' but useful to recompile just that part
566
- mx 'build' , '--dependencies' , 'org.truffleruby.cext'
567
564
when 'graalvm'
568
565
build_graalvm ( *options )
569
566
when 'native'
@@ -744,9 +741,6 @@ def compile_cext(name, ext_dir, target, clang_opts, env: {})
744
741
extconf = "#{ ext_dir } /extconf.rb"
745
742
raise "#{ extconf } does not exist" unless File . exist? ( extconf )
746
743
747
- # Make sure ruby.su is built
748
- build ( "cexts" )
749
-
750
744
chdir ( ext_dir ) do
751
745
run_ruby ( env , '-rmkmf' , "#{ ext_dir } /extconf.rb" ) # -rmkmf is required for C ext tests
752
746
if File . exists? ( 'Makefile' )
@@ -1250,7 +1244,6 @@ def mspec(*args)
1250
1244
def test_specs ( command , *args )
1251
1245
env_vars = { }
1252
1246
options = [ ]
1253
- running_local_build = false
1254
1247
1255
1248
case command
1256
1249
when 'run'
@@ -1286,7 +1279,6 @@ def test_specs(command, *args)
1286
1279
options << '-t' << find_launcher ( true )
1287
1280
options << '-T--native'
1288
1281
else
1289
- running_local_build = true
1290
1282
options += %w[ -T--vm.ea -T--vm.esa -T--vm.Xmx2G ]
1291
1283
options << "-T--core-load-path=#{ TRUFFLERUBY_DIR } /src/main/ruby/truffleruby"
1292
1284
options << "-T--polyglot" # For Truffle::Interop.export specs
@@ -1315,12 +1307,6 @@ def test_specs(command, *args)
1315
1307
options += %w[ --format specdoc ]
1316
1308
end
1317
1309
1318
- if running_local_build && (
1319
- args . any? { |arg | arg . include? 'optional/capi' } ||
1320
- !( args & %w[ :capi :truffle_capi :library_cext ] ) . empty? )
1321
- build ( "cexts" )
1322
- end
1323
-
1324
1310
run_mspec env_vars , command , *options , *args
1325
1311
end
1326
1312
private :test_specs
0 commit comments