com php-src: Switch to non deprecated PGO options: win32/build/confutils.js

From: Date: Thu, 24 Aug 2017 15:14:24 +0000
Subject: com php-src: Switch to non deprecated PGO options: win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99151@lists.php.net to get a copy of this message
Commit: 99ca99f079d890b70253219980247935fda043dc Author: Anatol Belski <ab@php.net> Thu, 24 Aug 2017 17:14:24 +0200 Parents: 48907e57ffbe44603d9146192a491628d8e4ce65 Branches: PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=99ca99f079d890b70253219980247935fda043dc Log: Switch to non deprecated PGO options Changed paths: M win32/build/confutils.js Diff: diff --git a/win32/build/confutils.js b/win32/build/confutils.js index e6ea605...aa7bf80 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -1223,11 +1223,11 @@ function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir) // Add compiler and link flags if PGO options are selected if (PHP_DEBUG != "yes" && PHP_PGI == "yes") { ADD_FLAG('CFLAGS_' + SAPI, "/GL /O2"); - ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG:PGINSTRUMENT"); + ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG /GENPROFILE"); } else if (PHP_DEBUG != "yes" && PHP_PGO != "no") { ADD_FLAG('CFLAGS_' + SAPI, "/GL /O2"); - ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG:PGUPDATE"); + ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG /USEPROFILE"); } ldflags += " /PGD:$(PGOPGD_DIR)\\" + makefiletarget.substring(0, makefiletarget.indexOf(".")) + ".pgd"; @@ -1422,10 +1422,10 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir) if (is_pgo_desired(extname) && (PHP_PGI == "yes" || PHP_PGO != "no")) { // Add compiler and link flags if PGO options are selected if (PHP_DEBUG != "yes" && PHP_PGI == "yes") { - ADD_FLAG('LDFLAGS_' + EXT, "/LTCG:PGINSTRUMENT"); + ADD_FLAG('LDFLAGS_' + EXT, "/LTCG /GENPROFILE"); } else if (PHP_DEBUG != "yes" && PHP_PGO != "no") { - ADD_FLAG('LDFLAGS_' + EXT, "/LTCG:PGUPDATE"); + ADD_FLAG('LDFLAGS_' + EXT, "/LTCG /USEPROFILE"); } ADD_FLAG('CFLAGS_' + EXT, "/GL /O2");

« previous php.cvs (#99151) next »