www/firefox: fix build on i386 (again)
upstream fix for alignment issues in embedded protobuf was not complete Reported by: fallout
This commit is contained in:
parent
986814bad8
commit
ac39d32256
1 changed files with 15 additions and 0 deletions
15
www/firefox/files/patch-i386-protobuf-alignment
Normal file
15
www/firefox/files/patch-i386-protobuf-alignment
Normal file
|
@ -0,0 +1,15 @@
|
|||
# On FreeBSD/i386's LLVM, actual alignment for atomic types requires
|
||||
# stricter alignment rules, mostly on 8 byte boundaries instead of 4 byte
|
||||
# as indicated by max_align_t.
|
||||
|
||||
--- ./toolkit/components/protobuf/src/google/protobuf/arena_impl.h.orig 2022-08-20 20:07:57.096818000 +0200
|
||||
+++ ./toolkit/components/protobuf/src/google/protobuf/arena_impl.h 2022-08-20 21:40:47.821690000 +0200
|
||||
@@ -640,7 +640,7 @@
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4324)
|
||||
#endif
|
||||
- struct alignas(kCacheAlignment) CacheAlignedLifecycleIdGenerator {
|
||||
+ struct alignas(alignof(std::atomic<LifecycleIdAtomic>)) CacheAlignedLifecycleIdGenerator {
|
||||
std::atomic<LifecycleIdAtomic> id;
|
||||
};
|
||||
static CacheAlignedLifecycleIdGenerator lifecycle_id_generator_;
|
Loading…
Reference in a new issue