com php-src: sync win32 makefile with makedist zendparse exports: win32/build/Makefile win32/build/confutils.js
| From: | Anatol Belski | Date: | Thu, 29 Sep 2016 10:56:49 +0000 |
| Subject: | com php-src: sync win32 makefile with makedist zendparse exports: win32/build/Makefile win32/build/confutils.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94781@lists.php.net to get a copy of this message | ||
Commit: 62bed405da99806aa94991ef0b933a1c41878aa5
Author: Anatol Belski <ab@php.net> Thu, 29 Sep 2016 12:56:49 +0200
Parents: e7f4355d9b6777bc9fc44ac3a109c52f5d304889
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=62bed405da99806aa94991ef0b933a1c41878aa5
Log:
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.
Changed paths:
M win32/build/Makefile
M win32/build/confutils.js
Diff:
diff --git a/win32/build/Makefile b/win32/build/Makefile
index 245643b..33f145f 100644
--- a/win32/build/Makefile
+++ b/win32/build/Makefile
@@ -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
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 8ab4b7b..e4270f7 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -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;