summarylogtreecommitdiffstats
path: root/0018-Make-PGO-use-toolchain.patch
diff options
context:
space:
mode:
authorBjörn Bidar2023-03-23 23:23:11 +0200
committerBjörn Bidar2023-03-23 23:43:53 +0200
commita4ae66b6b28607dd7bec51cae73300552ec8fafd (patch)
tree1e9b32b65ea282f4a3e7693dc165d6c9db6a33cf /0018-Make-PGO-use-toolchain.patch
parent61abbb0481681a0894d4c1b98f685dcada8ab2e8 (diff)
downloadaur-a4ae66b6b28607dd7bec51cae73300552ec8fafd.tar.gz
Update to 111.0-1
- New upstream release - Use tarball instead of hg sources - Restructure patching process - All patches are checked into git and then applied on top of the existing Mozilla sources. Doing so allows rebasing of patches to be done by a simple git rebase, all patches cherry-picked from upstream are then automatically excluded upon updating. - Rebase patch-set based on OpenSUSE patches, updates to the package will be faster this way. - The sources can be found here: https://github.com/Thaodan/gecko-dev The branches are split of from the mozilla 'release' branch that is set to the latest release version into release/$major.$minor.x and then the thaodan/release/$major.$minor.x branch is rebased upon that. - Remove other obsolete patches - Drop obsolete kde.js, it was removed in the OpenSUSE patches long ago, is redundant and doesn't function anymore. boo#1151186 https://bugzilla.opensuse.org/show_bug.cgi?id=1151186 Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Diffstat (limited to '0018-Make-PGO-use-toolchain.patch')
-rw-r--r--0018-Make-PGO-use-toolchain.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/0018-Make-PGO-use-toolchain.patch b/0018-Make-PGO-use-toolchain.patch
new file mode 100644
index 000000000000..cb291ea8a274
--- /dev/null
+++ b/0018-Make-PGO-use-toolchain.patch
@@ -0,0 +1,30 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Thomas Deutschmann <whissi@gentoo.org>
+Date: Mon, 6 Apr 2020 20:13:34 +0200
+Subject: [PATCH] Make PGO use toolchain
+
+Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
+---
+ build/unix/mozconfig.unix | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/build/unix/mozconfig.unix b/build/unix/mozconfig.unix
+index 22db5d401cd0b1081edd0ca558dfff3a77e5bd2a..b2fde82694b81eb3e2ec316088070051ad073db9 100644
+--- a/build/unix/mozconfig.unix
++++ b/build/unix/mozconfig.unix
+@@ -4,6 +4,15 @@ if [ -n "$FORCE_GCC" ]; then
+ CC="$MOZ_FETCHES_DIR/gcc/bin/gcc"
+ CXX="$MOZ_FETCHES_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=$MOZ_FETCHES_DIR/gcc/bin:$MOZ_FETCHES_DIR/binutils/bin:$PATH"