File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
lib/ruby_wasm/build/product Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,15 @@ def do_legacy_extconf(executor, crossruby)
9494 # HACK: extout is required to find config.h
9595 "-e" ,
9696 %Q($extout=ENV["extout"]="#{ crossruby . build_dir } /.ext") ,
97- *( @features . support_component_model? ? [ ] : [
97+ ]
98+ unless @features . support_component_model?
99+ extconf_args . concat ( [
98100 # HACK: skip have_devel check since ruby is not installed yet
99101 "-e" ,
100102 "$have_devel = true" ,
101- ] ) ,
103+ ] )
104+ end
105+ extconf_args . concat ( [
102106 # HACK: force static ext build by imitating extmk
103107 "-e" ,
104108 "$static = true; trace_var(:$static) {|v| $static = true }" ,
@@ -115,7 +119,7 @@ def do_legacy_extconf(executor, crossruby)
115119 %Q(require "json"; File.write("#{ metadata_json ( crossruby ) } ", JSON.dump({target: $target}))) ,
116120 "-I#{ crossruby . build_dir } " ,
117121 "--" ,
118- ]
122+ ] )
119123 extconf_args << "--disable-component-model" unless @features . support_component_model?
120124 # Clear RUBYOPT to avoid loading unrelated bundle setup
121125 executor . system crossruby . baseruby_path ,
You can’t perform that action at this time.
0 commit comments