www-client/firefox: USE=pgo when using GCC will require AVX2 support
authorThomas Deutschmann <whissi@gentoo.org>
Sun, 10 Feb 2019 00:50:26 +0000 (01:50 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Sun, 10 Feb 2019 21:49:56 +0000 (22:49 +0100)
Bug: https://bugs.gentoo.org/677052
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
www-client/firefox/firefox-65.0-r1.ebuild

index 68ba5674066ac9ab58f8ec12bb1cb9dbf7022f82..3496160e8fff3340a6d13b4a557376c94e3d354f 100644 (file)
@@ -41,9 +41,10 @@ KEYWORDS="~amd64 ~x86"
 
 SLOT="0"
 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist clang dbus debug eme-free geckodriver +gmp-autoupdate hardened hwaccel
-       jack lto neon pgo pulseaudio +screenshot selinux startup-notification
-       +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-sqlite
+IUSE="bindist clang cpu_flags_x86_avx2 dbus debug eme-free geckodriver
+       +gmp-autoupdate hardened hwaccel jack lto neon pgo pulseaudio
+       +screenshot selinux startup-notification +system-harfbuzz
+       +system-icu +system-jpeg +system-libevent +system-sqlite
        +system-libvpx +system-webp test wayland wifi"
 RESTRICT="!bindist? ( bindist )"
 
@@ -123,8 +124,13 @@ DEPEND="${CDEPEND}
        amd64? ( >=dev-lang/yasm-1.1 virtual/opengl )
        x86? ( >=dev-lang/yasm-1.1 virtual/opengl )"
 
+# Due to a bug in GCC, profile guided optimization will produce
+# AVX2 instructions, bug #677052
 REQUIRED_USE="wifi? ( dbus )
-       pgo? ( lto )"
+       pgo? (
+               lto
+               !clang? ( cpu_flags_x86_avx2 )
+       )"
 
 S="${WORKDIR}/firefox-${PV%_*}"