mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
mozjs78: port build-non-jit-32bit patch
This commit is contained in:
parent
217ebb8ea6
commit
ec018c4068
2 changed files with 15 additions and 1 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.
|
||||
|
||||
--- js/src/jit/none/MacroAssembler-none.h.orig 2021-04-12 00:05:00.691183973 +0200
|
||||
+++ js/src/jit/none/MacroAssembler-none.h 2021-04-12 00:05:10.336183909 +0200
|
||||
@@ -100,7 +100,7 @@ static constexpr Register WasmTlsReg{Reg
|
||||
static constexpr Register WasmJitEntryReturnScratch{Registers::invalid_reg};
|
||||
|
||||
static constexpr uint32_t ABIStackAlignment = 4;
|
||||
-static constexpr uint32_t CodeAlignment = 16;
|
||||
+static constexpr uint32_t CodeAlignment = 8;
|
||||
static constexpr uint32_t JitStackAlignment = 8;
|
||||
static constexpr uint32_t JitStackValueAlignment =
|
||||
JitStackAlignment / sizeof(Value);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'mozjs78'
|
||||
pkgname=mozjs78
|
||||
version=78.9.0
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="firefox-${version}"
|
||||
build_wrksrc=js/src
|
||||
build_style=gnu-configure
|
||||
|
|
Loading…
Add table
Reference in a new issue