mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
Since PHP 5.3 the default lexer generator is RE2C. On Unix-alike build systems there is also optional configure option --enable-re2c-cgoto which enables optimized conditional jumps using non-standard computed goto extension. It is available since RE2C 0.10.3 so it's well covered by RE2C versions PHP uses. This patch syncs usage of -g option accross the PHP Unix-alike build system.
6 lines
276 B
Makefile
6 lines
276 B
Makefile
$(srcdir)/json_scanner.c: $(srcdir)/json_scanner.re
|
|
$(RE2C) $(RE2C_FLAGS) -t $(srcdir)/php_json_scanner_defs.h --no-generation-date -bci -o $@ $(srcdir)/json_scanner.re
|
|
|
|
$(srcdir)/json_parser.tab.c: $(srcdir)/json_parser.y
|
|
$(YACC) --defines -l $(srcdir)/json_parser.y -o $@
|