summaryrefslogtreecommitdiff
path: root/pgo.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-01-03 15:35:59 +0100
committerMartin Stransky <stransky@redhat.com>2019-01-03 15:35:59 +0100
commit8fe69a3fb34945f94999bfe6c2d06385cbf0ab19 (patch)
treea839bdd5557a73d2bed66f0524d199898f184f50 /pgo.patch
parentPGO build test (diff)
downloadlibrewolf-fedora-ff-8fe69a3fb34945f94999bfe6c2d06385cbf0ab19.tar.gz
librewolf-fedora-ff-8fe69a3fb34945f94999bfe6c2d06385cbf0ab19.tar.bz2
librewolf-fedora-ff-8fe69a3fb34945f94999bfe6c2d06385cbf0ab19.zip
Updated PGO/LTO setup
Diffstat (limited to 'pgo.patch')
-rw-r--r--pgo.patch25
1 files changed, 22 insertions, 3 deletions
diff --git a/pgo.patch b/pgo.patch
index df18634..20eb98d 100644
--- a/pgo.patch
+++ b/pgo.patch
@@ -1,6 +1,25 @@
-diff -up firefox-64.0/extensions/spellcheck/src/moz.build.old firefox-64.0/extensions/spellcheck/src/moz.build
---- firefox-64.0/extensions/spellcheck/src/moz.build.old 2018-12-20 12:23:16.103206546 +0100
-+++ firefox-64.0/extensions/spellcheck/src/moz.build 2018-12-20 12:23:44.077140279 +0100
+diff -up firefox-64.0/build/unix/mozconfig.unix.pgo firefox-64.0/build/unix/mozconfig.unix
+--- firefox-64.0/build/unix/mozconfig.unix.pgo 2019-01-03 15:23:16.792980384 +0100
++++ firefox-64.0/build/unix/mozconfig.unix 2019-01-03 15:24:29.978693550 +0100
+@@ -6,6 +6,15 @@ if [ -n "$FORCE_GCC" ]; then
+ CC="$TOOLTOOL_DIR/gcc/bin/gcc"
+ CXX="$TOOLTOOL_DIR/gcc/bin/g++"
+
++ if [ -n "$MOZ_PGO" ]; then
++ if [ -z "$USE_ARTIFACT" ]; then
++ ac_add_options --enable-lto
++ fi
++ export AR="$topsrcdir/gcc/bin/gcc-ar"
++ export NM="$topsrcdir/gcc/bin/gcc-nm"
++ export RANLIB="$topsrcdir/gcc/bin/gcc-ranlib"
++ fi
++
+ # We want to make sure we use binutils and other binaries in the tooltool
+ # package.
+ mk_add_options "export PATH=$TOOLTOOL_DIR/gcc/bin:$PATH"
+diff -up firefox-64.0/extensions/spellcheck/src/moz.build.pgo firefox-64.0/extensions/spellcheck/src/moz.build
+--- firefox-64.0/extensions/spellcheck/src/moz.build.pgo 2018-12-07 03:56:27.000000000 +0100
++++ firefox-64.0/extensions/spellcheck/src/moz.build 2019-01-03 15:21:32.793385074 +0100
@@ -28,3 +28,5 @@ EXPORTS.mozilla += [
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
bgstack15