Skip to content

Commit 629af65

Browse files
richardlautargos
authored andcommitted
build: remove support for s390 32-bit
V8 removed support for it. Refs: v8/v8@9565a9a
1 parent 73070fa commit 629af65

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,6 @@ else
946946
ifeq ($(findstring s390x,$(UNAME_M)),s390x)
947947
DESTCPU ?= s390x
948948
else
949-
ifeq ($(findstring s390,$(UNAME_M)),s390)
950-
DESTCPU ?= s390
951-
else
952949
ifeq ($(findstring OS/390,$(shell uname -s)),OS/390)
953950
DESTCPU ?= s390x
954951
else
@@ -982,7 +979,6 @@ endif
982979
endif
983980
endif
984981
endif
985-
endif
986982
ifeq ($(DESTCPU),x64)
987983
ARCH=x64
988984
else
@@ -995,9 +991,6 @@ else
995991
ifeq ($(DESTCPU),ppc64)
996992
ARCH=ppc64
997993
else
998-
ifeq ($(DESTCPU),s390)
999-
ARCH=s390
1000-
else
1001994
ifeq ($(DESTCPU),s390x)
1002995
ARCH=s390x
1003996
else
@@ -1015,7 +1008,6 @@ endif
10151008
endif
10161009
endif
10171010
endif
1018-
endif
10191011

10201012
# node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32').
10211013
# pass the proper v8 arch name to $V8_ARCH based on user-specified $DESTCPU.

doc/api/os.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ added: v0.5.0
5555

5656
Returns the operating system CPU architecture for which the Node.js binary was
5757
compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`,
58-
`'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
59-
and `'x64'`.
58+
`'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`.
6059

6160
The return value is equivalent to [`process.arch`][].
6261

@@ -257,7 +256,7 @@ added:
257256
* Returns: {string}
258257

259258
Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`,
260-
`mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
259+
`mips`, `mips64`, `ppc64`, `ppc64le`, `s390x`, `i386`, `i686`, `x86_64`.
261260

262261
On POSIX systems, the machine type is determined by calling
263262
[`uname(3)`][]. On Windows, `RtlGetVersion()` is used, and if it is not

tools/v8_gypfiles/v8.gyp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,12 @@
791791
}],
792792
['v8_target_arch=="s390x"', {
793793
'sources': [
794-
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")',
794+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390x\\".*?sources \\+= ")',
795795
],
796796
'conditions': [
797797
['v8_enable_sparkplug==1', {
798798
'sources': [
799-
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390\\".*?v8_enable_sparkplug.*?sources \\+= ")',
799+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_header_set.\\"v8_internal_headers\\".*?v8_enable_i18n_support.*?v8_current_cpu == \\"s390x\\".*?v8_enable_sparkplug.*?sources \\+= ")',
800800
],
801801
}],
802802
],
@@ -1165,7 +1165,7 @@
11651165
}],
11661166
['v8_target_arch=="s390x"', {
11671167
'sources': [
1168-
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"s390\\".*?sources \\+= ")',
1168+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_base_without_compiler.*?v8_enable_wasm_gdb_remote_debugging.*?v8_current_cpu == \\"s390x\\".*?sources \\+= ")',
11691169
],
11701170
}],
11711171
['v8_target_arch=="riscv64"', {

0 commit comments

Comments
 (0)