commit:     e6cee38fceb4d49e92468fddb0020e838041d2bb
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 20 17:42:46 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Apr 20 17:42:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6cee38f

www-client/chromium: fix build with GCC on ARM64

Closes: https://bugs.gentoo.org/904697
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 www-client/chromium/chromium-112.0.5615.121.ebuild |  1 +
 .../files/chromium-112-gcc-mno-outline.patch       | 29 ++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/www-client/chromium/chromium-112.0.5615.121.ebuild 
b/www-client/chromium/chromium-112.0.5615.121.ebuild
index b391a12be8fd..e48dbe582783 100644
--- a/www-client/chromium/chromium-112.0.5615.121.ebuild
+++ b/www-client/chromium/chromium-112.0.5615.121.ebuild
@@ -341,6 +341,7 @@ src_prepare() {
                "${FILESDIR}/chromium-112-libstdc++.patch"
                "${FILESDIR}/chromium-112-libstdc++-1.patch"
                "${FILESDIR}/chromium-112-sql-relax.patch"
+               "${FILESDIR}/chromium-112-gcc-mno-outline.patch"
        )
 
        if use ppc64 ; then

diff --git a/www-client/chromium/files/chromium-112-gcc-mno-outline.patch 
b/www-client/chromium/files/chromium-112-gcc-mno-outline.patch
new file mode 100644
index 000000000000..9ebaf1720a90
--- /dev/null
+++ b/www-client/chromium/files/chromium-112-gcc-mno-outline.patch
@@ -0,0 +1,29 @@
+From 428afabde5f20bc91ad1166b983b9975188be737 Mon Sep 17 00:00:00 2001
+From: Jose Dapena Paz <[email protected]>
+Date: Tue, 07 Mar 2023 17:46:30 +0000
+Subject: [PATCH] GCC: do not disable outlining with -mno-outline
+
+GCC build fails in arm64 because -mno-outline is passed. This build
+option is only supported in Clang.
+
+Bug: 819294
+Change-Id: Ied5cf194c26fd284aa66477cf0cd381b8cd26607
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4316542
+Reviewed-by: Hans Wennborg <[email protected]>
+Commit-Queue: José Dapena Paz <[email protected]>
+Cr-Commit-Position: refs/heads/main@{#1114023}
+---
+
+diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
+index 4e6708b..6ca2924 100644
+--- a/build/config/compiler/BUILD.gn
++++ b/build/config/compiler/BUILD.gn
+@@ -1304,7 +1304,7 @@
+     configs += [ "//build/config/nacl:compiler_codegen" ]
+   }
+ 
+-  if (current_cpu == "arm64" && !is_win) {
++  if (current_cpu == "arm64" && !is_win && is_clang) {
+     # Disable outlining everywhere on arm64 except Win. For more information 
see
+     # crbug.com/931297 for Android and crbug.com/1410297 for iOS.
+     # TODO(crbug.com/1411363): Enable this on Windows if possible.

Reply via email to