mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
mozjs-91: Fix build on powerpc
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
f36cdc915c
commit
642965b331
@ -0,0 +1,36 @@
|
||||
From 0e0548e3f95e22a39db8d5b934afe0672a3f801b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Mon, 1 Nov 2021 08:13:29 +0100
|
||||
Subject: [PATCH] Fix build on powerpc
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Another fix for (this time JIT enabled)
|
||||
| <...>/irefox-91.2.0/js/src/wasm/WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame
|
||||
| 57 | static_assert((offsetof(DebugFrame, frame_) + sizeof(Frame)) % Alignment == 0,
|
||||
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
js/src/wasm/WasmFrame.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/js/src/wasm/WasmFrame.h b/js/src/wasm/WasmFrame.h
|
||||
index 893762e..2d90656 100644
|
||||
--- a/js/src/wasm/WasmFrame.h
|
||||
+++ b/js/src/wasm/WasmFrame.h
|
||||
@@ -232,7 +232,7 @@ class DebugFrame {
|
||||
#if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
|
||||
(defined(JS_CODEGEN_NONE) && \
|
||||
(defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) || \
|
||||
- defined(JS_CODEGEN_X86) || defined(__wasi__)
|
||||
+ defined(JS_CODEGEN_X86) || defined(__wasi__) || defined(__powerpc__)
|
||||
// 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.
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@ -11,7 +11,8 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/fire
|
||||
file://fix-musl-build.patch \
|
||||
file://0001-build-do-not-use-autoconf-s-config.sub-to-canonicali.patch \
|
||||
file://riscv32.patch \
|
||||
file://nojit-32bit-arch-fix.patch \
|
||||
file://0005-nojit-32bit-arch-fix.patch \
|
||||
file://0006-Fix-build-on-powerpc.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "3ef3cfd321d0c2c80ee1b41b8baf7a1ea4daf93c29e1377274933440ff5e42c3"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user