mozjs78: fix build on jit-less 32-bit platforms (mainly ppc32)
This commit is contained in:
parent
c771e772b1
commit
b5d2bc5216
1 changed files with 14 additions and 0 deletions
14
srcpkgs/mozjs78/patches/build-non-jit-32bit.patch
Normal file
14
srcpkgs/mozjs78/patches/build-non-jit-32bit.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
On 32-bit systems without JIT, the GC doesn't like 4-byte alignment,
|
||||
so enforce a stricter one.
|
||||
|
||||
--- a/js/src/jit/none/MacroAssembler-none.h
|
||||
+++ b/js/src/jit/none/MacroAssembler-none.h
|
||||
@@ -100,7 +100,7 @@ static constexpr Register WasmTlsReg{Registers::invalid_reg};
|
||||
static constexpr Register WasmJitEntryReturnScratch{Registers::invalid_reg};
|
||||
|
||||
static constexpr uint32_t ABIStackAlignment = 4;
|
||||
-static constexpr uint32_t CodeAlignment = sizeof(void*);
|
||||
+static constexpr uint32_t CodeAlignment = 8;
|
||||
static constexpr uint32_t JitStackAlignment = 8;
|
||||
static constexpr uint32_t JitStackValueAlignment =
|
||||
JitStackAlignment / sizeof(Value);
|
Loading…
Reference in a new issue