From 5e73db9cb71dad5084e44a945e9370ccd1e7d494 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 18 Jan 2016 18:31:04 +0100 Subject: [PATCH] integrate the /Gw compiler switch --- win32/build/confutils.js | 4 ++++ 1 file changed, 4 insertions(+) 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"); + } } } -- 2.50.1