Skip to content

Commit 7988efd

Browse files
committed
Set $have_devel = true for static build
Previously, mkmf failed with --disable-component-model build, because it attempted to link during have_devel check but ruby is not installed yet. This change reverts 70068a6 partially. Setting `$have_devel = true` skips have_devel check.
1 parent 2ba4910 commit 7988efd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: lib/ruby_wasm/build/product/crossruby.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,15 @@ def do_legacy_extconf(executor, crossruby)
9090
"--disable=gems",
9191
# HACK: top_srcdir is required to find ruby headers
9292
"-e",
93-
%Q($top_srcdir="#{source.src_dir}"),
93+
%Q($top_srcdir=ENV["top_srcdir"]="#{source.src_dir}"),
9494
# HACK: extout is required to find config.h
9595
"-e",
96-
%Q($extout="#{crossruby.build_dir}/.ext"),
96+
%Q($extout=ENV["extout"]="#{crossruby.build_dir}/.ext"),
97+
*(@features.support_component_model? ? [] : [
98+
# HACK: skip have_devel check since ruby is not installed yet
99+
"-e",
100+
"$have_devel = true",
101+
]),
97102
# HACK: force static ext build by imitating extmk
98103
"-e",
99104
"$static = true; trace_var(:$static) {|v| $static = true }",

0 commit comments

Comments
 (0)