Bug 1557785 - Hook MOZ_PGO_PROFILE_USE environment variable into common Windows mozconfig; r=firefox-build-system-reviewers,chmanchester
authorMike Shal <mshal@mozilla.com>
Wed, 19 Jun 2019 22:05:52 +0000
changeset 480093 0b6522f13bcfe979c1cd25e58447eecac2df9b34
parent 480092 516aa5eb97328ea43f3a2c2a7de17c947d023f79
child 480094 3430c89be449991836d52314869269cc0afa8227
push id36201
push usercsabou@mozilla.com
push dateWed, 26 Jun 2019 03:57:29 +0000
treeherdermozilla-central@a3cad1d7836c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfirefox-build-system-reviewers, chmanchester
bugs1557785
milestone69.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 1557785 - Hook MOZ_PGO_PROFILE_USE environment variable into common Windows mozconfig; r=firefox-build-system-reviewers,chmanchester MOZ_PGO_PROFILE_USE is set when the use-pgo attribute is defined in the task. This environment variable is used to enable --enable-profile-use and related configure flags. Differential Revision: https://phabricator.services.mozilla.com/D34798
build/mozconfig.win-common
--- a/build/mozconfig.win-common
+++ b/build/mozconfig.win-common
@@ -1,6 +1,14 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
 export MAKECAB=$TOOLTOOL_DIR/makecab.exe
+
+if [ -z "$USE_ARTIFACT" ]; then
+    if [ -n "$MOZ_PGO_PROFILE_USE" ]; then
+        ac_add_options --enable-profile-use
+        ac_add_options --with-pgo-jarlog="${WORKSPACE}/fetches/en-US.log"
+        ac_add_options --with-pgo-profile-path="${WORKSPACE}/fetches"
+    fi
+fi