mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Enable inline reader cache
This commit is contained in:
parent
9ad039a180
commit
309ae35773
@ -1257,10 +1257,16 @@ function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir)
|
||||
if (PHP_DEBUG != "yes" && PHP_PGI == "yes") {
|
||||
ADD_FLAG('CFLAGS_' + SAPI, "/GL /O2");
|
||||
ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG /GENPROFILE");
|
||||
if (VCVERS >= 1914) {
|
||||
ADD_FLAG('LDFLAGS_' + SAPI, "/d2:-FuncCache1");
|
||||
}
|
||||
}
|
||||
else if (PHP_DEBUG != "yes" && PHP_PGO != "no") {
|
||||
ADD_FLAG('CFLAGS_' + SAPI, "/GL /O2");
|
||||
ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG /USEPROFILE");
|
||||
if (VCVERS >= 1914) {
|
||||
ADD_FLAG('LDFLAGS_' + SAPI, "/d2:-FuncCache1");
|
||||
}
|
||||
}
|
||||
|
||||
ldflags += " /PGD:$(PGOPGD_DIR)\\" + makefiletarget.substring(0, makefiletarget.indexOf(".")) + ".pgd";
|
||||
@ -3230,6 +3236,10 @@ function toolset_setup_common_cflags()
|
||||
/* This is only in effect for CXX sources, __cplusplus is not defined in C sources. */
|
||||
ADD_FLAG("CFLAGS", "/Zc:__cplusplus");
|
||||
}
|
||||
|
||||
if (VCVERS >= 1914) {
|
||||
ADD_FLAG("CFLAGS", "/d2FuncCache1");
|
||||
}
|
||||
} else if (CLANG_TOOLSET) {
|
||||
if (X64) {
|
||||
ADD_FLAG('CFLAGS', '-m64');
|
||||
|
Loading…
Reference in New Issue
Block a user