@@ -785,7 +785,7 @@ def help
785
785
jt gem shortcut for `jt ruby -S gem`, to install Ruby gems, etc
786
786
jt e 14 + 2 evaluate an expression
787
787
jt puts 14 + 2 evaluate and print an expression
788
- jt cextc directory clang-args compile the C extension in directory, with optional extra clang arguments
788
+ jt cextc directory compile the C extension in directory
789
789
jt test run all mri tests, specs and integration tests
790
790
jt test basictest run MRI's basictest suite
791
791
jt test bootstraptest run MRI's bootstraptest suite
@@ -1074,16 +1074,16 @@ def gem(*args)
1074
1074
ruby '-S' , 'gem' , *args
1075
1075
end
1076
1076
1077
- def cextc ( cext_dir , * clang_opts )
1077
+ def cextc ( cext_dir )
1078
1078
require_ruby_launcher!
1079
1079
cext_dir = File . expand_path ( cext_dir )
1080
1080
name = File . basename ( cext_dir )
1081
1081
ext_dir = "#{ cext_dir } /ext/#{ name } "
1082
1082
target = "#{ cext_dir } /lib/#{ name } /#{ name } .#{ DLEXT } "
1083
- compile_cext ( name , ext_dir , target , clang_opts )
1083
+ compile_cext ( name , ext_dir , target )
1084
1084
end
1085
1085
1086
- private def compile_cext ( name , ext_dir , target , clang_opts , env : { } )
1086
+ private def compile_cext ( name , ext_dir , target , env : { } )
1087
1087
extconf = "#{ ext_dir } /extconf.rb"
1088
1088
raise "#{ extconf } does not exist" unless File . exist? ( extconf )
1089
1089
@@ -1267,7 +1267,7 @@ def test(*args)
1267
1267
end
1268
1268
dest_dir = File . join ( MRI_TEST_CEXT_LIB_DIR , target_dir )
1269
1269
FileUtils ::Verbose . mkdir_p ( dest_dir )
1270
- compile_cext ( name , compile_dir , dest_dir , [ ] , env : compile_env )
1270
+ compile_cext ( name , compile_dir , dest_dir , env : compile_env )
1271
1271
else
1272
1272
puts "c require not found for cext test: #{ test_path } "
1273
1273
end
@@ -1399,7 +1399,7 @@ def retag(*args)
1399
1399
gem_root = "#{ TRUFFLERUBY_DIR } /test/truffle/cexts/#{ gem_name } "
1400
1400
ext_dir = Dir . glob ( "#{ gem_home } /gems/#{ gem_name } */" ) [ 0 ] + "ext/#{ gem_name } "
1401
1401
1402
- compile_cext gem_name , ext_dir , "#{ gem_root } /lib/#{ gem_name } /#{ gem_name } .#{ DLEXT } " , [ '-Werror=implicit-function-declaration' ]
1402
+ compile_cext gem_name , ext_dir , "#{ gem_root } /lib/#{ gem_name } /#{ gem_name } .#{ DLEXT } "
1403
1403
1404
1404
next if gem_name == 'psd_native' # psd_native is excluded just for running
1405
1405
run_ruby ( *dependencies . map { |d | "-I#{ gem_home } /gems/#{ d } /lib" } ,
0 commit comments