commit:     ab3a604aa77a4c2a0d54fd146c5b7b0ca53f1b38
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 23 00:47:18 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Jun 23 01:00:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab3a604a

qt6-build.eclass: handle extra -mno-* for qtwebengine

Had forgotten chromium needed extras, so went to look at
chromium's ebuild to see which ones were getting stripped
that we aren't already handling.

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

 eclass/qt6-build.eclass | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass
index 4966c52adc4c..24b857dab53f 100644
--- a/eclass/qt6-build.eclass
+++ b/eclass/qt6-build.eclass
@@ -282,6 +282,17 @@ _qt6-build_sanitize_cpu_flags() {
                bmi bmi2 f16c fma lzcnt popcnt
        )
 
+       # extras only needed by chromium in qtwebengine
+       # (see also chromium's ebuild wrt bug #530248,#544702,#546984,#853646)
+       [[ ${PN} == qtwebengine ]] && cpuflags+=(
+               mmx xop
+
+               # unclear if these two are really needed given (current) 
chromium
+               # does not pass these flags, albeit it may side-disable 
something
+               # else so keeping as a safety (like chromium's ebuild does)
+               fma4 sse4a
+       )
+
        # check if any known problematic -mno-* C(XX)FLAGS
        if ! is-flagq "@($(IFS='|'; echo "${cpuflags[*]/#/-mno-}"))"; then
                # check if qsimd_p.h (search for "enable all") will accept 
-march

Reply via email to