]> granicus.if.org Git - php/commitdiff
integrate the /Gw compiler switch
authorAnatol Belski <ab@php.net>
Mon, 18 Jan 2016 17:31:04 +0000 (18:31 +0100)
committerAnatol Belski <ab@php.net>
Mon, 18 Jan 2016 17:32:19 +0000 (18:32 +0100)
win32/build/confutils.js

index d25eacad7b970144a830d092b33598aaa0822956..82b7fbc7b27adb8ebf8120e5498074fa19a4264b 100644 (file)
@@ -2649,6 +2649,10 @@ function toolset_setup_common_cflags()
                                if (PHP_PGI != "yes" && PHP_PGO != "yes") {
                                        ADD_FLAG('CFLAGS', "/Zc:inline");
                                }
+                               /* We enable /opt:icf only with the debug pack, so /Gw only makes sense there, too. */
+                               if (PHP_DEBUG_PACK == "yes") {
+                                       ADD_FLAG('CFLAGS', "/Gw");
+                               }
                        }
                }