Ionen Wolkens 754d6f5226 dev-qt/qtwebengine: improve clang-18 workaround w/ -mevex512 (qt6)
Hoping it will be a short-lived and that this will be improved/fixed
in clang itself.

(have not tried nor looked at qtwebengine:5)

For some rough explanation from the little I get from this:

clang-18 added -mevex512 (missing from 17), and then -march=native
is a bit quirky in that unlike -march=exact it goes out of its way
to disable it resulting in e.g.

	-march=skylake -mavx512f = -mevex512 is auto-enabled
	-march=skylake -mevex512 = not "enabled" but can be used
	-march=native(skylake) -mavx512f = forced off(!)

And then units that use avx512 / pass -mavx512f (for use with runtime
cpu detection) end in build failure without evex512.

Always passing -mevex512 on a machine without avx512 "seems" safe,
it does not even set __EVEX512__ and believe won't use any avx512
instructions on a whim (__EVEX512__ does get set if add -mavx512f).
Or at least my skylake (not skylake-x) passes test + can use the
qtwebengine built that way.

Considered passing only for files that need it at first with a patch
(sounded safer), but chromium's Gn files don't have a variable to test
clang version that I could see (or at least not in old qtwebengine) and
didn't want this to become more involved nor use conditional patching.

The !avx512 check may not be super necessary, but have not dug into
the implications of forcing it when avx512 is actually enabled (sounds
there are cases where it needs to be off, leaving it to compiler).

Bug: https://bugs.gentoo.org/931623
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2024-05-09 08:12:58 -04:00
2024-04-30 20:21:05 +02:00
2024-05-07 19:37:24 +02:00
2024-05-05 20:56:09 +02:00
2024-04-30 20:21:05 +02:00
2024-05-09 09:46:45 +03:00
2024-04-30 20:21:05 +02:00
2024-05-08 00:03:48 +01:00
2024-05-06 10:08:19 +03:00
2024-05-08 12:21:44 -04:00
2024-05-09 08:23:00 +03:00
2024-05-05 20:56:10 +02:00
2024-05-08 21:34:21 +01:00
2024-05-09 06:59:25 +02:00
2024-05-07 21:23:02 +02:00
2024-05-09 12:32:34 +01:00
2024-05-09 02:36:21 +01:00
2024-04-30 20:21:05 +02:00
2024-05-01 16:14:49 +02:00
2024-05-03 13:01:35 +03:00
2024-05-05 20:56:03 +02:00
2024-05-07 10:14:19 -05:00
2024-05-09 13:11:36 +01:00
2024-04-30 20:21:05 +02:00
2024-04-30 20:21:05 +02:00
2024-04-30 20:21:05 +02:00
2024-05-01 14:32:38 +02:00
2024-05-09 06:29:43 -05:00
2024-04-30 20:21:05 +02:00
2024-05-08 19:22:39 +02:00
2024-04-30 20:21:05 +02:00
2024-05-06 20:29:18 +02:00
2024-04-30 20:21:05 +02:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%