Bug 1512723 - Enable cross-language LTO on Win64 shippable builds r=glandium
authorDavid Major <dmajor@mozilla.com>
Thu, 04 Apr 2019 13:20:15 +0000
changeset 467989 5851c65af0e0567d9cea916dd1d303f3b6ebe83b
parent 467988 425aab7d1e5a3deeead162cc9feb86cb4cc4da76
child 467990 b23278bf5294b13d8228fb93515c4ee973ec5b7f
push id35815
push userccoroiu@mozilla.com
push dateThu, 04 Apr 2019 21:55:21 +0000
treeherdermozilla-central@50d64901b71f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1512723
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1512723 - Enable cross-language LTO on Win64 shippable builds r=glandium Differential Revision: https://phabricator.services.mozilla.com/D25852
browser/config/mozconfigs/win64/common-opt
--- a/browser/config/mozconfigs/win64/common-opt
+++ b/browser/config/mozconfigs/win64/common-opt
@@ -15,8 +15,12 @@ ac_add_options --with-mozilla-api-keyfil
 export MOZILLA_OFFICIAL=1
 
 export MOZ_TELEMETRY_REPORTING=1
 
 . $topsrcdir/build/win64/mozconfig.vs-latest
 
 # Package js shell.
 export MOZ_PACKAGE_JSSHELL=1
+
+if [ -n "$MOZ_PGO" ]; then
+    RUSTFLAGS="-Clinker-plugin-lto"
+fi