From 0fb3b3c834efe4e44aab0470ade4efc4827c2dd1 Mon Sep 17 00:00:00 2001 From: stefson Date: Wed, 25 Aug 2021 12:22:40 +0200 Subject: [PATCH 1/2] www-client/firefox: allow split up of neon and thumb2 --- www-client/firefox/firefox-91.0.2.ebuild | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/www-client/firefox/firefox-91.0.2.ebuild b/www-client/firefox/firefox-91.0.2.ebuild index b606ecd707c3e..a924a4702f97e 100644 --- a/www-client/firefox/firefox-91.0.2.ebuild +++ b/www-client/firefox/firefox-91.0.2.ebuild @@ -61,10 +61,10 @@ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" SLOT="0/$(ver_cut 1)" LICENSE="MPL-2.0 GPL-2 LGPL-2.1" -IUSE="+clang cpu_flags_arm_neon dbus debug eme-free geckodriver +gmp-autoupdate - hardened hwaccel jack lto +openh264 pgo pulseaudio screencast sndio selinux - +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent - +system-libvpx +system-webp wayland wifi" +IUSE="+clang cpu_flags_arm_neon cpu_flags_arm_thumb2 dbus debug eme-free geckodriver + +gmp-autoupdate hardened hwaccel jack lto +openh264 pgo pulseaudio screencast + sndio selinux +system-av1 +system-harfbuzz +system-icu +system-jpeg + +system-libevent +system-libvpx +system-webp wayland wifi" REQUIRED_USE="debug? ( !system-av1 ) screencast? ( wayland )" @@ -783,15 +783,17 @@ src_configure() { filter-flags '-O*' # Modifications to better support ARM, bug #553364 + # gcc and clang are both fine with neon optimization if use cpu_flags_arm_neon ; then mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + fi - if ! tc-is-clang ; then - # thumb options aren't supported when using clang, bug 666966 - mozconfig_add_options_ac '+cpu_flags_arm_neon' \ - --with-thumb=yes \ - --with-thumb-interwork=no - fi + if cpu_flags_arm_thumb2 && ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + # this needs special thumbv7neon-unknown-linux-gnueabihf rust-std + mozconfig_add_options_ac '+cpu_flags_arm_thumb2' \ + --with-thumb=yes \ + --with-thumb-interwork=no fi if [[ ${CHOST} == armv*h* ]] ; then