summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authory-uti <y.uchiyama.1015@gmail.com>2016-07-12 12:59:11 +0200
committerAnatol Belski <ab@php.net>2016-07-12 12:59:11 +0200
commitacc58f18453f67928e66573889061135d188ee6e (patch)
treebce2ab754a378773b1a0672e1f91207d2557baf3
parentca08ed417ecb6345862e3c3315c4dc2e1d46f066 (diff)
downloadphp-git-acc58f18453f67928e66573889061135d188ee6e.tar.gz
Make phpize set a proper build type (windows)
-rw-r--r--win32/build/config.w32.phpize.in2
-rw-r--r--win32/build/confutils.js1
-rw-r--r--win32/build/phpize.js.in2
3 files changed, 3 insertions, 2 deletions
diff --git a/win32/build/config.w32.phpize.in b/win32/build/config.w32.phpize.in
index 9f315ac879..09e82d73bf 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 dd9bddd57a..8ab4b7b0e9 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 1302cf7065..e610897b4c 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