8000 Add tool/missing-baseruby.bat, used when BASERUBY not available · ruby/ruby@7dca6b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7dca6b5

Browse files
jeremyevansnobu
andauthored
Add tool/missing-baseruby.bat, used when BASERUBY not available
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>
1 parent ae2c4d0 commit 7dca6b5
< 8000 div class="prc-PageLayout-PaneWrapper-nGO0U Commit-module__Pane--r5DTJ Commit-module__TreeExpanded--asa0G" style="--offset-header:0px;--spacing-row:var(--spacing-none);--spacing-column:var(--spacing-none)" data-is-hidden="false" data-position="start" data-sticky="true">

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ AS_IF([test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'p
8989
])
9090
AS_IF([test "$HAVE_BASERUBY" = no], [
9191
AS_IF([test "$cross_compiling" = yes], [AC_MSG_ERROR([executable host ruby is required for cross-compiling])])
92-
BASERUBY="echo executable host ruby is required. use --with-baseruby option.; false"
92+
BASERUBY=$srcdir/tool/missing-baseruby.bat
9393
])
9494
AC_SUBST(BASERUBY)
9595
AC_SUBST(HAVE_BASERUBY)

tool/missing-baseruby.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
: "
2+
@echo off
3+
: "
4+
echo executable host ruby is required. use --with-baseruby option.
5+
exit 1

0 commit comments

Comments
 (0)
0