com php-src: Make phpize set a proper build type (windows): win32/build/config.w32.phpize.in win32/build/confutils.js win32/build/phpize.js.in
| From: | Anatol Belski | Date: | Tue, 12 Jul 2016 10:59:11 +0000 |
| Subject: | com php-src: Make phpize set a proper build type (windows): win32/build/config.w32.phpize.in win32/build/confutils.js win32/build/phpize.js.in | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92962@lists.php.net to get a copy of this message | ||
Commit: acc58f18453f67928e66573889061135d188ee6e
Author: y-uti <y.uchiyama.1015@gmail.com> Tue, 12 Jul 2016 12:59:11 +0200
Committer: Anatol Belski <ab@php.net> Tue, 12 Jul 2016 12:59:11 +0200
Parents: ca08ed417ecb6345862e3c3315c4dc2e1d46f066
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=acc58f18453f67928e66573889061135d188ee6e
Log:
Make phpize set a proper build type (windows)
Changed paths:
M win32/build/config.w32.phpize..in
M win32/build/confutils.js
M win32/build/phpize.js.in
Diff:
diff --git a/win32/build/config.w32.phpize.in b/win32/build/config.w32.phpize.in
index 9f315ac..09e82d7 100644
--- a/win32/build/config..w32.phpize.in
+++ b/win32/build/config.w32.phpize.in
@@ -23,7 +23,7 @@ toolset_setup_project_tools();
ARG_ENABLE('object-out-dir', 'Alternate location for binary objects during
build', '');
object_out_dir_option_handle();
-ARG_ENABLE('debug', 'Compile with debugging symbols', "no");
+ARG_ENABLE('debug', 'Compile with debugging symbols', PHP_DEBUG);
ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols
(--enable-debug must not be specified)', 'no');
if (PHP_DEBUG == "yes" && PHP_DEBUG_PACK == "yes") {
ERROR("Use of both --enable-debug and --enable-debug-pack not allowed.");
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index dd9bddd..8ab4b7b 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -2042,6 +2042,7 @@ function generate_phpize()
CJ = FSO.CreateTextFile(dest + "/config.phpize.js");
CJ.WriteLine("var PHP_ZTS =" + '"' + PHP_ZTS + '"');
+ CJ.WriteLine("var PHP_DEBUG=" + '"' + PHP_DEBUG + '"');
CJ.WriteLine("var PHP_DLL_LIB =" + '"' + get_define('PHPLIB') +
'"');
CJ.WriteLine("var PHP_DLL =" + '"' + get_define('PHPDLL') +
'"');
diff --git a/win32/build/phpize.js.in b/win32/build/phpize.js.in
index 1302cf7..e610897 100644
--- a/win32/build/phpize.js.in
+++ b/win32/build/phpize.js.in
@@ -229,7 +229,7 @@ C..Write(file_get_contents(PHP_DIR + "/script/config.phpize.js"));
// Pull in code for the base detection
modules = file_get_contents(PHP_DIR + "/script/config.w32.phpize.in");
-C.WriteLine("ARG_ENABLE('debug', 'Compile with debugging symbols',
\"no\");");
+C.WriteLine("ARG_ENABLE('debug', 'Compile with debugging symbols',
PHP_DEBUG);");
find_config_w32(".");
// Now generate contents of module based on MODULES, chasing dependencies