com php-src: integrate the /Gw compiler switch: win32/build/confutils.js
| From: | Anatol Belski | Date: | Mon, 18 Jan 2016 17:32:19 +0000 |
| Subject: | com php-src: integrate the /Gw compiler switch: win32/build/confutils.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90687@lists.php.net to get a copy of this message | ||
Commit: 5e73db9cb71dad5084e44a945e9370ccd1e7d494
Author: Anatol Belski <ab@php.net> Mon, 18 Jan 2016 18:31:04 +0100
Parents: cce370d4c9b2989485299619019575fabfe3e595
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5e73db9cb71dad5084e44a945e9370ccd1e7d494
Log:
integrate the /Gw compiler switch
Changed paths:
M win32/build/confutils.js
Diff:
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index d25eaca..82b7fbc 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");
+ }
}
}