From 7f27dbc64f9eec27af4883f879ec39be5045d0fa Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 18 Sep 2024 14:18:56 +0000 Subject: [PATCH] build: remove support for s390 32-bit V8 removed support for it. Refs: https://github.com/v8/v8/commit/9565a9a721a7f1449be73c03aedc8532571e8bd1 --- Makefile | 8 -------- doc/api/os.md | 5 ++--- tools/v8_gypfiles/v8.gyp | 6 +++--- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 5a3b7a1bbb2..830d5f56a2a 100644 --- a/Makefile +++ b/Makefile @@ -912,9 +912,6 @@ else ifeq ($(findstring s390x,$(UNAME_M)),s390x) DESTCPU ?= s390x else -ifeq ($(findstring s390,$(UNAME_M)),s390) -DESTCPU ?= s390 -else ifeq ($(findstring OS/390,$(shell uname -s)),OS/390) DESTCPU ?= s390x else @@ -944,7 +941,6 @@ endif endif endif endif -endif ifeq ($(DESTCPU),x64) ARCH=x64 else @@ -957,9 +953,6 @@ else ifeq ($(DESTCPU),ppc64) ARCH=ppc64 else -ifeq ($(DESTCPU),s390) -ARCH=s390 -else ifeq ($(DESTCPU),s390x) ARCH=s390x else @@ -973,7 +966,6 @@ endif endif endif endif -endif # node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32'). # pass the proper v8 arch name to $V8_ARCH based on user-specified $DESTCPU. diff --git a/doc/api/os.md b/doc/api/os.md index 861b99b6679..625d395e056 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -55,8 +55,7 @@ added: v0.5.0 Returns the operating system CPU architecture for which the Node.js binary was compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, -`'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, -and `'x64'`. +`'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`. The return value is equivalent to [`process.arch`][]. @@ -257,7 +256,7 @@ added: * Returns: {string} Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, -`mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`. +`mips`, `mips64`, `ppc64`, `ppc64le`, `s390x`, `i386`, `i686`, `x86_64`. On POSIX systems, the machine type is determined by calling [`uname(3)`][]. On Windows, `RtlGetVersion()` is used, and if it is not diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index df7f37a8013..75cc19d7f0b 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -773,12 +773,12 @@ }], ['v8_target_arch=="s390x"', { 'sources': [ - '