]> granicus.if.org Git - php/commitdiff
Make phpize set a proper build type (windows)
authory-uti <y.uchiyama.1015@gmail.com>
Tue, 12 Jul 2016 10:59:11 +0000 (12:59 +0200)
committerAnatol Belski <ab@php.net>
Tue, 12 Jul 2016 10:59:11 +0000 (12:59 +0200)
win32/build/config.w32.phpize.in
win32/build/confutils.js
win32/build/phpize.js.in

index 9f315ac879801402410890c0bd05c912b3b6d139..09e82d73bf780218098da56193a2ade41c0aadd4 100644 (file)
@@ -23,7 +23,7 @@ toolset_setup_project_tools();
 ARG_ENABLE('object-out-dir', 'Alternate location for binary objects during build', '');\r
 object_out_dir_option_handle();\r
 \r
-ARG_ENABLE('debug', 'Compile with debugging symbols', "no");\r
+ARG_ENABLE('debug', 'Compile with debugging symbols', PHP_DEBUG);\r
 ARG_ENABLE('debug-pack', 'Release binaries with external debug symbols (--enable-debug must not be specified)', 'no');\r
 if (PHP_DEBUG == "yes" && PHP_DEBUG_PACK == "yes") {\r
        ERROR("Use of both --enable-debug and --enable-debug-pack not allowed.");\r
index dd9bddd57a5f10c40f8c80a8361334f4869cb294..8ab4b7b0e9eb0bfc313c274d84e886d99a9c2520 100644 (file)
@@ -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') + '"');
 
index 1302cf7065a2ebe75cb77c97d46bf660033d95c9..e610897b4c27c1903b7e5bd4e4c81084cce0a639 100644 (file)
@@ -229,7 +229,7 @@ C.Write(file_get_contents(PHP_DIR + "/script/config.phpize.js"));
 // Pull in code for the base detection\r
 modules = file_get_contents(PHP_DIR + "/script/config.w32.phpize.in");\r
 \r
-C.WriteLine("ARG_ENABLE('debug', 'Compile with debugging symbols', \"no\");");\r
+C.WriteLine("ARG_ENABLE('debug', 'Compile with debugging symbols', PHP_DEBUG);");\r
 find_config_w32(".");\r
 \r
 // Now generate contents of module based on MODULES, chasing dependencies\r