]> granicus.if.org Git - php/commitdiff
Enable all compiler warnings and linker warnings for debug builds on Windows. This...
authorKalle Sommer Nielsen <kalle@php.net>
Sun, 29 Mar 2015 04:06:24 +0000 (06:06 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Sun, 29 Mar 2015 04:06:24 +0000 (06:06 +0200)
win32/build/config.w32

index 076a7008a15f7c14d59900cc8d63fe7cd2020f5e..f58ca8d9bbca76534db78a21d6fb48acb90e401f 100644 (file)
@@ -29,6 +29,11 @@ if (PHP_DEBUG == "yes" && PHP_DEBUG_PACK == "yes") {
        ERROR("Use of both --enable-debug and --enable-debug-pack not allowed.");
 }
 
+if (PHP_DEBUG == "yes") {
+       ADD_FLAG("CFLAGS"," /Wall ");
+       ADD_FLAG("LDFLAGS", " /verbose ");
+}
+
 ARG_ENABLE('pgi', 'Generate PGO instrumented binaries', 'no');
 ARG_WITH('pgo', 'Compile optimized binaries using training data from folder', 'no');
 if (PHP_PGI == "yes" || PHP_PGO != "no") {