Skip to content

Commit

Permalink
Merge pull request #562 from mame/add-have_devel-for-static-build
Browse files Browse the repository at this point in the history
Set `$have_devel = true` for static build
  • Loading branch information
kateinoigakukun authored Dec 18, 2024
2 parents 2ba4910 + 7988efd commit 4b115d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/ruby_wasm/build/product/crossruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,15 @@ def do_legacy_extconf(executor, crossruby)
"--disable=gems",
# HACK: top_srcdir is required to find ruby headers
"-e",
%Q($top_srcdir="#{source.src_dir}"),
%Q($top_srcdir=ENV["top_srcdir"]="#{source.src_dir}"),
# HACK: extout is required to find config.h
"-e",
%Q($extout="#{crossruby.build_dir}/.ext"),
%Q($extout=ENV["extout"]="#{crossruby.build_dir}/.ext"),
*(@features.support_component_model? ? [] : [
# HACK: skip have_devel check since ruby is not installed yet
"-e",
"$have_devel = true",
]),
# HACK: force static ext build by imitating extmk
"-e",
"$static = true; trace_var(:$static) {|v| $static = true }",
Expand Down

0 comments on commit 4b115d9

Please sign in to comment.