Skip to content

Commit f7816b0

Browse files
committed
win32/configure.bat: Add --with-dump-ast option
1 parent af85de8 commit f7816b0

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

win32/Makefile.sub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,12 @@ ACTIONS_ENDGROUP = @::
558558

559559
ABI_VERSION_HDR = $(hdrdir)/ruby/internal/abi.h
560560

561+
!if defined(DUMP_AST)
562+
DUMP_AST_TARGET = no
563+
!else
561564
DUMP_AST = dump_ast$(EXEEXT)
565+
DUMP_AST_TARGET = $(DUMP_AST)
566+
!endif
562567

563568
!include $(srcdir)/common.mk
564569

win32/configure.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ goto :loop ;
183183
if "%opt%" == "--with-gmp-dir" goto :opt-dir
184184
if "%opt%" == "--with-gmp" goto :gmp
185185
if "%opt%" == "--with-destdir" goto :destdir
186+
if "%opt%" == "--with-dump-ast" goto :dump-ast
186187
goto :loop ;
187188
:ntver
188189
::- For version constants, see
@@ -232,6 +233,9 @@ goto :loop ;
232233
:destdir
233234
echo>> %config_make% DESTDIR = %arg%
234235
goto :loop ;
236+
:dump-ast
237+
echo>> %config_make% DUMP_AST = %arg%
238+
goto :loop ;
235239
:opt-dir
236240
if "%arg%" == "" (
237241
echo 1>&2 %configure%: missing argument for %opt%

0 commit comments

Comments
 (0)