[Bug #21017] Fix --with-parser configure option

This commit is contained in:
Nobuyoshi Nakada 2025-01-08 17:26:08 +09:00
parent 3c3bde64ff
commit 051af9529b
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-01-08 09:03:05 +00:00
2 changed files with 4 additions and 2 deletions

View File

@ -73,6 +73,8 @@ jobs:
- run: make
- run: make TESTRUN_SCRIPT='-e "exit !RUBY_DESCRIPTION.include?(%[+PRISM])"' run
- name: make ${{ matrix.test_task }}
run: make -s ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS" SPECOPTS="$SPECOPTS"
env:

View File

@ -4547,10 +4547,10 @@ AS_IF([test x"$enable_rubygems" = xno], [
AC_SUBST(USE_RUBYGEMS)
m4_define(available_parsers, [parse.y, prism])
with_parser=prism
AC_ARG_WITH(parser,
AS_HELP_STRING([--with-parser=PARSER],
[specify default parser; PARSER is one of ]m4_join([, ],available_parsers)))
[specify default parser; PARSER is one of ]m4_join([, ],available_parsers)),
[], [with_parser=prism])
AS_CASE([$with_parser],
m4_foreach(parser, [available_parsers],
parser[,][AC_DEFINE_UNQUOTED(RB_DEFAULT_PARSER, RB_DEFAULT_PARSER_[]AS_TR_CPP(parser)),])