From ab3a604aa77a4c2a0d54fd146c5b7b0ca53f1b38 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sat, 22 Jun 2024 20:47:18 -0400 Subject: 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 --- eclass/qt6-build.eclass | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'eclass/qt6-build.eclass') 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 -- cgit v1.2.3-65-gdbad