mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
sync win32 makefile with makedist zendparse exports
With a newer bison this part is relevant. Whil bison 2.4.1 is still used, this changes cater for the forward compatibility.
This commit is contained in:
parent
e7f4355d9b
commit
62bed405da
2 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,9 @@ Zend\zend_ini_parser.c Zend\zend_ini_parser.h: Zend\zend_ini_parser.y
|
|||
|
||||
Zend\zend_language_parser.c Zend\zend_language_parser.h: Zend\zend_language_parser.y
|
||||
$(BISON) --output=Zend/zend_language_parser.c -v -d -p zend Zend/zend_language_parser.y
|
||||
@if "$(SED)" neq "" $(SED) -i "s,^int zendparse\(.*\),ZEND_API int zendparse\1,g" Zend/zend_language_parser.c
|
||||
@if "$(SED)" neq "" $(SED) -i "s,^int zendparse\(.*\),ZEND_API int zendparse\1,g" Zend/zend_language_parser.h
|
||||
@if "$(SED)" neq "" $(SED) -i "s,^#ifndef YYTOKENTYPE,#include \"zend.h\"\n#ifndef YYTOKENTYPE,g" Zend/zend_language_parser.h
|
||||
|
||||
sapi\phpdbg\phpdbg_parser.c sapi\phpdbg\phpdbg_parser.h: sapi\phpdbg\phpdbg_parser.y
|
||||
$(BISON) --output=sapi/phpdbg/phpdbg_parser.c -v -d -p phpdbg_ sapi/phpdbg/phpdbg_parser.y
|
||||
|
|
|
@ -2498,6 +2498,9 @@ function toolset_setup_project_tools()
|
|||
ERROR('bison is required')
|
||||
}
|
||||
|
||||
/* TODO throw error, ignore for now for BC. */
|
||||
PATH_PROG('sed');
|
||||
|
||||
RE2C = PATH_PROG('re2c');
|
||||
if (RE2C) {
|
||||
var intvers, intmin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue