mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
mozjs91: fix ppc32 build
This commit is contained in:
parent
f2a6889692
commit
6cd1cf5038
1 changed files with 19 additions and 0 deletions
19
srcpkgs/mozjs91/patches/fix-build-ppc32.patch
Normal file
19
srcpkgs/mozjs91/patches/fix-build-ppc32.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
commit 32e52128ce8fe7704a29a5a4fb921a8394540fbc
|
||||
Author: q66 <daniel@octaforge.org>
|
||||
Date: Mon Jun 13 14:01:59 2022 +0200
|
||||
|
||||
fix ftbfs on powerpc32
|
||||
|
||||
diff --git a/js/src/wasm/WasmFrame.h b/js/src/wasm/WasmFrame.h
|
||||
index 85f2612d..df5c9629 100644
|
||||
--- a/js/src/wasm/WasmFrame.h
|
||||
+++ b/js/src/wasm/WasmFrame.h
|
||||
@@ -230,7 +230,7 @@ class DebugFrame {
|
||||
// Avoid -Wunused-private-field warnings.
|
||||
protected:
|
||||
#if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
|
||||
- defined(JS_CODEGEN_X86) || defined(__wasi__)
|
||||
+ defined(JS_CODEGEN_X86) || defined(__wasi__) || (defined(__powerpc__) && !defined(__powerpc64__))
|
||||
// See alignmentStaticAsserts(). For MIPS32, ARM32 and X86 DebugFrame is only
|
||||
// 4-byte aligned, so we add another word to get up to 8-byte
|
||||
// alignment.
|
Loading…
Add table
Reference in a new issue