com php-src: Merge branch 'PHP-7.0' into PHP-7.1: win32/build/confutils.js
| From: | Anatol Belski | Date: | Sat, 07 Jan 2017 01:48:14 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.0' into PHP-7.1: win32/build/confutils.js | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96586@lists.php.net to get a copy of this message | ||
Commit: 22ed374c9ab1130acf1f457045d657bd768d420b
Author: Anatol Belski <ab@php.net> Sat, 7 Jan 2017 02:48:14 +0100
Parents: f7bb3b5cbde6008ec139b18a5768dcac60652011 f98d8f6c159ddcbc652eaa7f0f6e6a67edf963d5
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=22ed374c9ab1130acf1f457045d657bd768d420b
Log:
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
/guard is also a security flag
Changed paths:
MM win32/build/confutils.js
Diff:
diff --cc win32/build/confutils.js
index d9fef5f,8eb0c19..1307d73
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@@ -3041,17 -2856,10 +3041,19 @@@ function toolset_setup_common_cflags(
ADD_FLAG('CFLAGS', ' /RTC1 ');
} else {
if (VCVERS >= 1900) {
- ADD_FLAG('CFLAGS', "/guard:cf");
+ if (PHP_SECURITY_FLAGS == "yes") {
+ ADD_FLAG('CFLAGS', "/guard:cf");
+ }
}
+ if (VCVERS >= 1800) {
+ 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");
+ }
+ }
}
} else if (CLANG_TOOLSET) {