summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorCristian Rodríguez <crrodriguez@opensuse.org>2018-08-05 16:07:01 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-08-12 11:15:18 +0200
commite0fe667421bfd49d25f0052d873cef7c344ebb74 (patch)
tree802c9fc09aafe8c6a7878101f437d0273769f5a7 /ext/json
parent3cef5a2476176ce32e22eb49091718489f4f8872 (diff)
downloadphp-git-e0fe667421bfd49d25f0052d873cef7c344ebb74.tar.gz
Fix bug #76030 RE2C_FLAGS rarely honoured
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.
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/Makefile.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/Makefile.frag b/ext/json/Makefile.frag
index cb26acabc7..d35abfc8c4 100644
--- a/ext/json/Makefile.frag
+++ b/ext/json/Makefile.frag
@@ -1,5 +1,5 @@
$(srcdir)/json_scanner.c: $(srcdir)/json_scanner.re
- $(RE2C) -t $(srcdir)/php_json_scanner_defs.h --no-generation-date -bci -o $@ $(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 $@