Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: backport a536de469 from nod (#34136)
- Loading branch information
1 parent
95277d1
commit 16b78a4
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
patches/node/build_disable_v8_pointer_compression_on_32bit_archs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Cheng Zhao <zcbenz@gmail.com> | ||
Date: Tue, 12 Oct 2021 10:41:55 +0900 | ||
Subject: build: disable v8 pointer compression on 32bit archs | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
PR-URL: https://github.com/nodejs/node/pull/40418 | ||
Reviewed-By: Jiawen Geng <technicalcute@gmail.com> | ||
Reviewed-By: Stewart X Addison <sxa@redhat.com> | ||
Reviewed-By: Tobias Nießen <tniessen@tnie.de> | ||
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> | ||
Reviewed-By: Michael Dawson <midawson@redhat.com> | ||
|
||
diff --git a/common.gypi b/common.gypi | ||
index 8a85c7c3d0ab0e2906c417f2cc2fc9ca584fd601..f6ea8340b696103d0949df7fb7b75a1d05e90f87 100644 | ||
--- a/common.gypi | ||
+++ b/common.gypi | ||
@@ -130,6 +130,11 @@ | ||
['target_arch == "arm64" or target_arch == "x64"', { | ||
'v8_enable_pointer_compression': 1, | ||
}], | ||
+ # V8 pointer compression only supports 64bit architectures. | ||
+ ['target_arch in "arm ia32 mips mipsel ppc x32"', { | ||
+ 'v8_enable_pointer_compression': 0, | ||
+ 'v8_enable_31bit_smis_on_64bit_arch': 0, | ||
+ }], | ||
['target_arch in "ppc64 s390x"', { | ||
'v8_enable_backtrace': 1, | ||
}], |