summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-12-10 17:39:04 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-11 11:24:42 +0900
commit40026a408df5e3576380f6c1d8bf6c119fa2e32b (patch)
tree5946811b38d5b70aaa0c5a4ab983fef19478ded9 /common.mk
parent9c2807b2df14984e3c81d72a381d9a4d288b3fbe (diff)
support cross-compilation.
On cross-compilation, compiled binary can no be created because compiled binary should be created by same interpreter (on cross- compilation, host ruby is used to build ruby (BASERUBY)). So that cross-compilation system loads required scripts in text. It is same as miniruby.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2735
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 92196d4f85..6646bd92b4 100644
--- a/common.mk
+++ b/common.mk
@@ -1115,7 +1115,7 @@ preludes: {$(srcdir)}golf_prelude.c
$(Q) $(BASERUBY) $(srcdir)/tool/mk_builtin_loader.rb $<
builtin_binary.inc: $(PREP) $(BUILTIN_RB_SRCS) $(srcdir)/tool/mk_builtin_binary.rb
- $(Q) $(MINIRUBY) $(srcdir)/tool/mk_builtin_binary.rb
+ $(Q) $(MINIRUBY) $(srcdir)/tool/mk_builtin_binary.rb --cross=$(CROSS_COMPILING)
$(BUILTIN_RB_INCS): $(top_srcdir)/tool/mk_builtin_loader.rb