qt6-build.eclass: fix x86-64-v4 detection with gcc-16

Could probably improve the detection method if needed, but going
with the simplest solution unless there's more problems.

May need to revisiting if clang follows suit to match gcc (or if
gcc-16 changes something before release) given x86-64-v4 now means
something different.

Closes: https://bugs.gentoo.org/956750
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-05-28 22:31:30 -04:00
parent 9c80e23c9c
commit f31b583e6e

View File

@@ -336,6 +336,9 @@ _qt6-build_sanitize_cpu_flags() {
x86-64-v2
# if (__AVX__ + __AVX2__ + __BMI__ + __BMI2__ + __F16C__ + __FMA__ + __LZCNT__ + __MOVBE__ + __XSAVE__) == 9
x86-64-v3
# if !defined(__EVEX512__) && !defined(__clang__) && __GNUC__ >= 16
# define __EVEX512__ 1 /* removed in gcc-16 (bug #956750) */
# endif
# if (__AVX512BW__ + __AVX512CD__ + __AVX512DQ__ + __AVX512F__ + __AVX512VL__ + __EVEX256__ + __EVEX512__) == 7
x86-64-v4
# endif