Missing piece for the inliner cache

This commit is contained in:
Anatol Belski 2018-08-03 10:19:43 +02:00
parent c389fc6117
commit 9d89cf95d3

View File

@ -1469,9 +1469,15 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir)
// Add compiler and link flags if PGO options are selected
if (PHP_DEBUG != "yes" && PHP_PGI == "yes") {
ADD_FLAG('LDFLAGS_' + EXT, "/LTCG /GENPROFILE");
if (VCVERS >= 1914) {
ADD_FLAG('LDFLAGS_' + EXT, "/d2:-FuncCache1");
}
}
else if (PHP_DEBUG != "yes" && PHP_PGO != "no") {
ADD_FLAG('LDFLAGS_' + EXT, "/LTCG /USEPROFILE");
if (VCVERS >= 1914) {
ADD_FLAG('LDFLAGS_' + EXT, "/d2:-FuncCache1");
}
}
ADD_FLAG('CFLAGS_' + EXT, "/GL /O2");