com php-src: Revert "Enable whole program optimization for builds without PGO, too": win32/build/confutils.js

From: Date: Thu, 13 Jul 2017 10:20:34 +0000
Subject: com php-src: Revert "Enable whole program optimization for builds without PGO, too": win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98536@lists.php.net to get a copy of this message
Commit: bc16deee83bf1eda1e212078d875644b2834a928 Author: Anatol Belski <ab@php.net> Thu, 13 Jul 2017 11:58:09 +0200 Parents: d9f72886aac8b51819d41b873c4ec1f0eea3e88a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bc16deee83bf1eda1e212078d875644b2834a928 Log: Revert "Enable whole program optimization for builds without PGO, too" This reverts commit f052e99df6f4b3bc4e2a1e9717ee36339a33f33b. There appear to be link issues with upcoming 19.11 and /LTCG, prefer wider dependency compatibility. Changed paths: M win32/build/confutils.js Diff: diff --git a/win32/build/confutils.js b/win32/build/confutils.js index bf393b0..1aeb940 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -1229,9 +1229,6 @@ function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir) } ldflags += " /PGD:$(PGOPGD_DIR)\\" + makefiletarget.substring(0, makefiletarget.indexOf(".")) + ".pgd"; - } else if (PHP_DEBUG != "yes") { - ADD_FLAG('CFLAGS_' + SAPI, "/GL"); - ADD_FLAG('LDFLAGS_' + SAPI, "/LTCG:INCREMENTAL"); } if (MODE_PHPIZE) { @@ -1432,9 +1429,6 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir) ADD_FLAG('CFLAGS_' + EXT, "/GL /O2"); ldflags = " /PGD:$(PGOPGD_DIR)\\" + dllname.substring(0, dllname.indexOf(".")) + ".pgd"; - } else if (PHP_DEBUG != "yes") { - ADD_FLAG('CFLAGS_' + EXT, "/GL"); - ADD_FLAG('LDFLAGS_' + EXT, "/LTCG:INCREMENTAL"); } MFO.WriteLine("$(BUILD_DIR)\\" + libname + ": $(BUILD_DIR)\\" + dllname); @@ -1477,9 +1471,6 @@ function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir) ADD_FLAG("STATIC_EXT_CFLAGS", "/GL /O2"); static_pgo_enabled = true; } - } else if (PHP_DEBUG != "yes") { - ADD_FLAG("STATIC_EXT_CFLAGS", "/GL"); - ADD_FLAG('STATIC_EXT_LDFLAGS', "/LTCG:INCREMENTAL"); } /* find the header that declares the module pointer,

« previous php.cvs (#98536) next »