summaryrefslogtreecommitdiff
path: root/dev-qt/qtwebengine
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-05-08 04:54:14 -0400
committerIonen Wolkens <ionen@gentoo.org>2024-05-08 12:17:44 -0400
commit7f3dcfe18e8f64b9f69ff8b16a2e5bfe440473a9 (patch)
tree6c45ba4693e8e52a2cf013cb0f5c8bd0c84e0edf /dev-qt/qtwebengine
parent558079c5c1a9ede3e487dc360b69af72958e45cb (diff)
downloadgentoo-7f3dcfe18e8f64b9f69ff8b16a2e5bfe440473a9.tar.gz
gentoo-7f3dcfe18e8f64b9f69ff8b16a2e5bfe440473a9.tar.bz2
gentoo-7f3dcfe18e8f64b9f69ff8b16a2e5bfe440473a9.zip
dev-qt/qtwebengine: "fix" build with clang-18 + -march=native (qt6)
Needs more looking into but want a quick workaround before 6.7.1 releases with clang users having started to use 18. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtwebengine')
-rw-r--r--dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild11
-rw-r--r--dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild11
-rw-r--r--dev-qt/qtwebengine/qtwebengine-6.9999.ebuild11
3 files changed, 33 insertions, 0 deletions
diff --git a/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild b/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild
index 997dbaf4ec5f..0829dcfa3b22 100644
--- a/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild
@@ -239,6 +239,17 @@ src_configure() {
# for simplicity. Override with USE=custom-cflags if wanted, please
# report if above -march works again so can cleanup.
use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*'
+
+ # skia and xnnpack fail with clang-18 + some(?) -march=native while
+ # can't reproduce with seemingly equivalent =skylake), needs more
+ # looking into as there may be something odd going on (clang bug?).
+ # Note that upstream Qt disallows custom *FLAGS on qtwebengine meaning
+ # we are not supposed to pass -march=native in the first place.
+ # TODO: try dropping this on major Qt and clang bumps
+ # See also: https://groups.google.com/g/skia-discuss/c/DNW4oq3W2fI
+ # (Transform_inl.h:769:21: error: AVX vector <snip> without 'evex512')
+ use amd64 && tc-is-clang && [[ $(clang-major-version) -ge 18 ]] &&
+ filter-flags -march=native
fi
export NINJA NINJAFLAGS=$(get_NINJAOPTS)
diff --git a/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild
index 6dc080fed1e4..750f700160b2 100644
--- a/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild
@@ -236,6 +236,17 @@ src_configure() {
# for simplicity. Override with USE=custom-cflags if wanted, please
# report if above -march works again so can cleanup.
use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*'
+
+ # skia and xnnpack fail with clang-18 + some(?) -march=native while
+ # can't reproduce with seemingly equivalent =skylake), needs more
+ # looking into as there may be something odd going on (clang bug?).
+ # Note that upstream Qt disallows custom *FLAGS on qtwebengine meaning
+ # we are not supposed to pass -march=native in the first place.
+ # TODO: try dropping this on major Qt and clang bumps
+ # See also: https://groups.google.com/g/skia-discuss/c/DNW4oq3W2fI
+ # (Transform_inl.h:769:21: error: AVX vector <snip> without 'evex512')
+ use amd64 && tc-is-clang && [[ $(clang-major-version) -ge 18 ]] &&
+ filter-flags -march=native
fi
export NINJA NINJAFLAGS=$(get_NINJAOPTS)
diff --git a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
index 6dc080fed1e4..750f700160b2 100644
--- a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
+++ b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild
@@ -236,6 +236,17 @@ src_configure() {
# for simplicity. Override with USE=custom-cflags if wanted, please
# report if above -march works again so can cleanup.
use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*'
+
+ # skia and xnnpack fail with clang-18 + some(?) -march=native while
+ # can't reproduce with seemingly equivalent =skylake), needs more
+ # looking into as there may be something odd going on (clang bug?).
+ # Note that upstream Qt disallows custom *FLAGS on qtwebengine meaning
+ # we are not supposed to pass -march=native in the first place.
+ # TODO: try dropping this on major Qt and clang bumps
+ # See also: https://groups.google.com/g/skia-discuss/c/DNW4oq3W2fI
+ # (Transform_inl.h:769:21: error: AVX vector <snip> without 'evex512')
+ use amd64 && tc-is-clang && [[ $(clang-major-version) -ge 18 ]] &&
+ filter-flags -march=native
fi
export NINJA NINJAFLAGS=$(get_NINJAOPTS)