diff options
| author | Eric Joldasov <bratishkaerik@landless-city.net> | 2024-11-03 05:08:53 +0500 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2024-11-06 13:35:14 +0000 |
| commit | f4a5c79c896bde3dbf6fe3618fd86f68c003577a (patch) | |
| tree | b758a5cb1e61b475930593f692911910fee0aec6 /dev-cpp/abseil-cpp/files/abseil-cpp-atomic.patch | |
| parent | 4777ea448c6b0d289068b3acd371c50e6844cb6b (diff) | |
| download | gentoo-f4a5c79c896bde3dbf6fe3618fd86f68c003577a.tar.gz gentoo-f4a5c79c896bde3dbf6fe3618fd86f68c003577a.tar.bz2 gentoo-f4a5c79c896bde3dbf6fe3618fd86f68c003577a.zip | |
dev-lang/zig: fix building 0.13.0 with `sys-devel/llvm-18.1.8-r6`
Also, while we are here, sync `.maxrss` fix from 9999 ebuild .
Patch message:
This is backported PR https://www.github.com/ziglang/zig/pull/21862 ,
squashed and trimmed down for Zig 0.13.0 . Fixes following error when
compiling with sys-devel/llvm-18.1.8-r6:
```
/var/tmp/portage/dev-lang/zig-0.13.0/work/zig-0.13.0/src/zig_llvm.cpp:738:68: error: static assertion failed
738 | static_assert((Triple::EnvironmentType)ZigLLVM_LastEnvironmentType == Triple::LastEnvironmentType, "");
```
Chronology as I understood it:
* New enum tags were added for `Triple::EnvironmentType` to 20.x in
https://www.github.com/llvm/llvm-project/pull/111302 ,
* These additions were backported to 19.1.3 in
https://www.github.com/llvm/llvm-project/pull/112364 , at this point
Zig upstream (9999) notices static assert failure and fixes in
https://www.github.com/ziglang/zig/pull/21862 .
Discussed here:
https://www.github.com/llvm/llvm-project/pull/112364#discussion_r1823206017 .
* These additions were backported again to 18.1.8-r6 (Gentoo only) in
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9455b76daa769c03686d18098dbf37690c5c5f61 ,
this time it causes static assert failure for 0.13.0 .
Closes: https://bugs.gentoo.org/942563
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
Closes: https://github.com/gentoo/gentoo/pull/39187
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/abseil-cpp/files/abseil-cpp-atomic.patch')
0 files changed, 0 insertions, 0 deletions
