commit:     440b08f6bcb82e28e3ba56a6c07a9881fbc7a23f
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  8 15:56:28 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jan  8 21:08:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=440b08f6

qt6-build.eclass: shorten intrin test a bit

Felt more correct but do not actually need the header for these.

Could alternatively use tc-cpp-is-true too, but fwiw current
method allows batching in a single compiler call.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 eclass/qt6-build.eclass | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass
index 561a4fe20422..59baaa77ce6d 100644
--- a/eclass/qt6-build.eclass
+++ b/eclass/qt6-build.eclass
@@ -240,9 +240,6 @@ _qt6-build_match_cpu_flags() {
                        done
        done < <(
                $(tc-getCXX) -E -P ${CXXFLAGS} ${CPPFLAGS} - <<-EOF | tail -n 2
-                       #if defined(__GNUC__) && (defined(__x86_64__) || 
defined(__i386__))
-                       #include <x86intrin.h>
-                       #endif
                        avx2=__AVX2__ =__BMI__ =__BMI2__ =__F16C__ =__FMA__ 
=__LZCNT__ =__POPCNT__
                        avx512f=__AVX512F__ avx512bw=__AVX512BW__ 
avx512cd=__AVX512CD__ avx512dq=__AVX512DQ__ avx512vl=__AVX512VL__
                EOF

Reply via email to