[Bug #21017] Fix --with-parser
configure option
This commit is contained in:
parent
3c3bde64ff
commit
051af9529b
Notes:
git
2025-01-08 09:03:05 +00:00
2
.github/workflows/parsey.yml
vendored
2
.github/workflows/parsey.yml
vendored
@ -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:
|
||||
|
@ -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)),])
|
||||
|
Loading…
x
Reference in New Issue
Block a user