Skip to content

Commit

Permalink
[Bug #21017] Fix --with-parser configure option
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 8, 2025
1 parent 3c3bde6 commit 051af95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/parsey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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)),])
Expand Down

0 comments on commit 051af95

Please sign in to comment.