Bug 1553065 - Use MOZ_LTO environment variable in mozconfig.unix; r=firefox-build-system-reviewers,chmanchester a=RyanVM
authorMike Shal <mshal@mozilla.com>
Fri, 31 May 2019 23:56:12 +0000
changeset 536953 4a7962ae170f16bc2b7b0e50348322ca1f01a7dc
parent 536952 a8333688fcbe378aad3757fd62673928b1668179
child 536954 4f6a9270754a0ca4e368bb0bf3256c72669fe79c
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfirefox-build-system-reviewers, chmanchester, RyanVM
bugs1553065, 1530908, 1536194
milestone68.0
Bug 1553065 - Use MOZ_LTO environment variable in mozconfig.unix; r=firefox-build-system-reviewers,chmanchester a=RyanVM This makes it consistent with bug 1530908 and 1536194. Differential Revision: https://phabricator.services.mozilla.com/D33171
build/unix/mozconfig.unix
--- a/build/unix/mozconfig.unix
+++ b/build/unix/mozconfig.unix
@@ -20,17 +20,17 @@ else
     *)
       export CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
       export CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
       ;;
     esac
 
     if [ -n "$MOZ_PGO" ]; then
         if [ -z "$USE_ARTIFACT" ]; then
-            ac_add_options --enable-lto
+            export MOZ_LTO=1
         fi
         export LLVM_PROFDATA="$TOOLTOOL_DIR/clang/bin/llvm-profdata"
         export AR="$topsrcdir/clang/bin/llvm-ar"
         export NM="$topsrcdir/clang/bin/llvm-nm"
         export RANLIB="$topsrcdir/clang/bin/llvm-ranlib"
     fi
 
     mk_add_options "export PATH=$TOOLTOOL_DIR/binutils/bin:$PATH"