Skip to content

Commit

Permalink
Add tool/missing-baseruby.bat, used when BASERUBY not available
Browse files Browse the repository at this point in the history
Previously, the embedded semicolon in BASERUBY if BASERUBY is
not available breaks tarball builds without BASERUBY when using
OpenBSD make, due to the inability to escape MFLAGS correctly.
This moves the same BASERUBY code into a separate file, avoiding
the MFLAGS quoting issue.

BASERUBY must be passed to build-ext because it is required
by ripper since the introduction of lrama.

Fixes [Bug #19683]

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
  • Loading branch information
jeremyevans and nobu committed Dec 20, 2023
1 parent ae2c4d0 commit 7dca6b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -89,7 +89,7 @@ AS_IF([test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'p
])
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"
BASERUBY=$srcdir/tool/missing-baseruby.bat
])
AC_SUBST(BASERUBY)
AC_SUBST(HAVE_BASERUBY)
Expand Down
5 changes: 5 additions & 0 deletions tool/missing-baseruby.bat
@@ -0,0 +1,5 @@
: "
@echo off
: "
echo executable host ruby is required. use --with-baseruby option.
exit 1

0 comments on commit 7dca6b5

Please sign in to comment.