We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ba4910 + 7988efd commit 4b115d9Copy full SHA for 4b115d9
lib/ruby_wasm/build/product/crossruby.rb
@@ -90,10 +90,15 @@ def do_legacy_extconf(executor, crossruby)
90
"--disable=gems",
91
# HACK: top_srcdir is required to find ruby headers
92
"-e",
93
- %Q($top_srcdir="#{source.src_dir}"),
+ %Q($top_srcdir=ENV["top_srcdir"]="#{source.src_dir}"),
94
# HACK: extout is required to find config.h
95
96
- %Q($extout="#{crossruby.build_dir}/.ext"),
+ %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
+ ]),
102
# HACK: force static ext build by imitating extmk
103
104
"$static = true; trace_var(:$static) {|v| $static = true }",
0 commit comments