mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
f3feef8b93
The --no-generation-date flag is a common re2c flag used in all re2c invocations. This adds the 2nd optional argument to PHP_PROG_RE2C M4 macro in BC manner to set the default re2c command-line options and sets the default RE2C_FLAGS similarly on Windows.
8 lines
304 B
Makefile
8 lines
304 B
Makefile
$(srcdir)/mysql_sql_parser.c: $(srcdir)/mysql_sql_parser.re
|
|
@(cd $(top_srcdir); \
|
|
if test -f ./mysql_sql_parser.re; then \
|
|
$(RE2C) $(RE2C_FLAGS) -o mysql_sql_parser.c mysql_sql_parser.re; \
|
|
else \
|
|
$(RE2C) $(RE2C_FLAGS) -o ext/pdo_mysql/mysql_sql_parser.c ext/pdo_mysql/mysql_sql_parser.re; \
|
|
fi)
|