From: Anatol Belski Date: Mon, 18 Jan 2016 17:31:04 +0000 (+0100) Subject: integrate the /Gw compiler switch X-Git-Tag: php-7.2.0alpha1~620^2~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e73db9cb71dad5084e44a945e9370ccd1e7d494;p=php integrate the /Gw compiler switch --- diff --git a/win32/build/confutils.js b/win32/build/confutils.js index d25eacad7b..82b7fbc7b2 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -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"); + } } }