1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ensure BASERUBY when cross-compiling

This commit is contained in:
Nobuyoshi Nakada 2022-09-06 13:45:45 +09:00
parent 1b034d66f5
commit 3a575d13d5
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
2 changed files with 9 additions and 0 deletions

View file

@ -76,6 +76,7 @@ AS_IF([test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'p
HAVE_BASERUBY=no
])
AS_IF([test "$HAVE_BASERUBY" = no], [
AS_IF([test "$cross_compiling" = yes], [AC_MSG_ERROR([executable host ruby is required for cross-compiling])])
BASERUBY="echo executable host ruby is required. use --with-baseruby option.; false"
])
AC_SUBST(BASERUBY)

View file

@ -24,6 +24,14 @@ REVISION_FORCE = PHONY
!ifndef CROSS_COMPILING
CROSS_COMPILING = no
!else if "$(CROSS_COMPILING)" == "yes"
! if "$(HAVE_BASERUBY)" != "yes"
! error executable host ruby is required for cross-compiling
! endif
!else
! if "$(CROSS_COMPILING)" != "no"
! error Bad CROSS_COMPILING
! endif
!endif
!ifndef win_srcdir
win_srcdir = $(srcdir)/win32