Skip to content

Commit 0f1c86c

Browse files
Workaround for rbs Ruby::UnannotatedEmptyCollection
1 parent 1cb2e77 commit 0f1c86c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/ruby_wasm/build/product/crossruby.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)