mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user