From 4581997ed04b43a9636e1c447beb001dc051d01f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 12 Oct 2021 10:41:55 +0900 Subject: [PATCH] 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 Reviewed-By: Stewart X Addison Reviewed-By: Tobias Nießen Reviewed-By: Minwoo Jung Reviewed-By: Michael Dawson --- common.gypi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common.gypi b/common.gypi index 7bc2b3abf47019..b8d61f0d32709f 100644 --- a/common.gypi +++ b/common.gypi @@ -108,6 +108,11 @@ 'obj_dir%': '<(PRODUCT_DIR)/obj.target', 'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a', }], + # 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, }],