mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
/guard is also a security flag
This commit is contained in:
parent
4568618030
commit
f98d8f6c15
1 changed files with 6 additions and 2 deletions
|
@ -2856,7 +2856,9 @@ 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2888,7 +2890,9 @@ function toolset_setup_common_ldlags()
|
|||
|
||||
if (VS_TOOLSET) {
|
||||
if (VCVERS >= 1900) {
|
||||
ADD_FLAG('LDFLAGS', "/GUARD:CF");
|
||||
if (PHP_SECURITY_FLAGS == "yes") {
|
||||
ADD_FLAG('LDFLAGS', "/GUARD:CF");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue