Skip to content

Commit 4b115d9

Browse files
Merge pull request #562 from mame/add-have_devel-for-static-build
Set `$have_devel = true` for static build
2 parents 2ba4910 + 7988efd commit 4b115d9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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)