summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-06-22 20:47:18 -0400
committerIonen Wolkens <ionen@gentoo.org>2024-06-22 21:00:02 -0400
commitab3a604aa77a4c2a0d54fd146c5b7b0ca53f1b38 (patch)
tree7caa3ea4c0d23d56d84ebe826b440250b0476b0f /eclass/qt6-build.eclass
parentapp-emacs/org-mode: drop 9.6.29 (diff)
downloadgentoo-ab3a604aa77a4c2a0d54fd146c5b7b0ca53f1b38.tar.gz
gentoo-ab3a604aa77a4c2a0d54fd146c5b7b0ca53f1b38.tar.bz2
gentoo-ab3a604aa77a4c2a0d54fd146c5b7b0ca53f1b38.zip
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@gentoo.org>
Diffstat (limited to 'eclass/qt6-build.eclass')
-rw-r--r--eclass/qt6-build.eclass11
1 files changed, 11 insertions, 0 deletions
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