From: y-uti Date: Tue, 12 Jul 2016 10:59:11 +0000 (+0200) Subject: Make phpize set a proper build type (windows) X-Git-Tag: php-7.1.0beta1~96^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acc58f18453f67928e66573889061135d188ee6e;p=php Make phpize set a proper build type (windows) --- 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