Skip to content

Commit 309ae35

Browse files
committed
Enable inline reader cache
1 parent 9ad039a commit 309ae35

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

win32/build/confutils.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,10 +1257,16 @@ function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir)
12571257
if (PHP_DEBUG != "yes" && PHP_PGI == "yes") {
12581258
ADD_FLAG('CFLAGS_' + SAPI, "/GL /O2");
12591259
ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG /GENPROFILE");
1260+
if (VCVERS >= 1914) {
1261+
ADD_FLAG('LDFLAGS_' + SAPI, "/d2:-FuncCache1");
1262+
}
12601263
}
12611264
else if (PHP_DEBUG != "yes" && PHP_PGO != "no") {
12621265
ADD_FLAG('CFLAGS_' + SAPI, "/GL /O2");
12631266
ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG /USEPROFILE");
1267+
if (VCVERS >= 1914) {
1268+
ADD_FLAG('LDFLAGS_' + SAPI, "/d2:-FuncCache1");
1269+
}
12641270
}
12651271

12661272
ldflags += " /PGD:$(PGOPGD_DIR)\\" + makefiletarget.substring(0, makefiletarget.indexOf(".")) + ".pgd";
@@ -3230,6 +3236,10 @@ function toolset_setup_common_cflags()
32303236
/* This is only in effect for CXX sources, __cplusplus is not defined in C sources. */
32313237
ADD_FLAG("CFLAGS", "/Zc:__cplusplus");
32323238
}
3239+
3240+
if (VCVERS >= 1914) {
3241+
ADD_FLAG("CFLAGS", "/d2FuncCache1");
3242+
}
32333243
} else if (CLANG_TOOLSET) {
32343244
if (X64) {
32353245
ADD_FLAG('CFLAGS', '-m64');

0 commit comments

Comments
 (0)