commit:     21d67dd1f21db33bb7d1611baa3727b378e47c96
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 14 04:31:29 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Mar 14 04:35:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21d67dd1

x11-terms/kitty: workaround simde issue with -mxop

Haven't actually tried bdver2 that bug #926959 used given hit
illegal instructions mid-build, but should work in theory given
it does with -mxop.

Thankfully simde gives a lot of defines to control what it does,
but ideally it should be looked at in simde itself upstream.

Closes: https://bugs.gentoo.org/926959
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-terms/kitty/kitty-0.33.0.ebuild | 3 +++
 x11-terms/kitty/kitty-9999.ebuild   | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/x11-terms/kitty/kitty-0.33.0.ebuild 
b/x11-terms/kitty/kitty-0.33.0.ebuild
index 72d581ffd389..cf3bee0036d7 100644
--- a/x11-terms/kitty/kitty-0.33.0.ebuild
+++ b/x11-terms/kitty/kitty-0.33.0.ebuild
@@ -145,6 +145,9 @@ src_compile() {
                        printf %s "${CFLAGS}"
                )
 
+       # workaround simde bug with -mxop (bug #926959)
+       append-cppflags -DSIMDE_X86_XOP_NO_NATIVE=1
+
        local conf=(
                --disable-link-time-optimization
                --ignore-compiler-warnings

diff --git a/x11-terms/kitty/kitty-9999.ebuild 
b/x11-terms/kitty/kitty-9999.ebuild
index 72d581ffd389..cf3bee0036d7 100644
--- a/x11-terms/kitty/kitty-9999.ebuild
+++ b/x11-terms/kitty/kitty-9999.ebuild
@@ -145,6 +145,9 @@ src_compile() {
                        printf %s "${CFLAGS}"
                )
 
+       # workaround simde bug with -mxop (bug #926959)
+       append-cppflags -DSIMDE_X86_XOP_NO_NATIVE=1
+
        local conf=(
                --disable-link-time-optimization
                --ignore-compiler-warnings

Reply via email to