Skip to content

Commit f98d8f6

Browse files
committedJan 7, 2017
/guard is also a security flag
1 parent 4568618 commit f98d8f6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎win32/build/confutils.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,9 @@ function toolset_setup_common_cflags()
28562856
ADD_FLAG('CFLAGS', ' /RTC1 ');
28572857
} else {
28582858
if (VCVERS >= 1900) {
2859-
ADD_FLAG('CFLAGS', "/guard:cf");
2859+
if (PHP_SECURITY_FLAGS == "yes") {
2860+
ADD_FLAG('CFLAGS', "/guard:cf");
2861+
}
28602862
}
28612863
}
28622864

@@ -2888,7 +2890,9 @@ function toolset_setup_common_ldlags()
28882890

28892891
if (VS_TOOLSET) {
28902892
if (VCVERS >= 1900) {
2891-
ADD_FLAG('LDFLAGS', "/GUARD:CF");
2893+
if (PHP_SECURITY_FLAGS == "yes") {
2894+
ADD_FLAG('LDFLAGS', "/GUARD:CF");
2895+
}
28922896
}
28932897
}
28942898
}

0 commit comments

Comments
 (0)
Please sign in to comment.