Skip to content

Commit aa0553c

Browse files
targosnodejs-github-bot
authored andcommitted
build: remove support for ppc 32-bit
V8 removed support for it. Refs: v8/v8@6437539
1 parent 0d5797f commit aa0553c

File tree

6 files changed

+5
-21
lines changed

6 files changed

+5
-21
lines changed

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -909,9 +909,6 @@ else
909909
ifeq ($(findstring ppc64,$(UNAME_M)),ppc64)
910910
DESTCPU ?= ppc64
911911
else
912-
ifeq ($(findstring ppc,$(UNAME_M)),ppc)
913-
DESTCPU ?= ppc
914-
else
915912
ifeq ($(findstring s390x,$(UNAME_M)),s390x)
916913
DESTCPU ?= s390x
917914
else
@@ -948,7 +945,6 @@ endif
948945
endif
949946
endif
950947
endif
951-
endif
952948
ifeq ($(DESTCPU),x64)
953949
ARCH=x64
954950
else
@@ -961,9 +957,6 @@ else
961957
ifeq ($(DESTCPU),ppc64)
962958
ARCH=ppc64
963959
else
964-
ifeq ($(DESTCPU),ppc)
965-
ARCH=ppc
966-
else
967960
ifeq ($(DESTCPU),s390)
968961
ARCH=s390
969962
else
@@ -981,7 +974,6 @@ endif
981974
endif
982975
endif
983976
endif
984-
endif
985977

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

common.gypi

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a',
111111
}],
112112
# V8 pointer compression only supports 64bit architectures.
113-
['target_arch in "arm ia32 mips mipsel ppc"', {
113+
['target_arch in "arm ia32 mips mipsel"', {
114114
'v8_enable_pointer_compression': 0,
115115
'v8_enable_31bit_smis_on_64bit_arch': 0,
116116
'v8_enable_sandbox': 0
@@ -516,10 +516,6 @@
516516
'cflags': [ '-m64' ],
517517
'ldflags': [ '-m64' ],
518518
}],
519-
[ 'host_arch=="ppc" and OS not in "aix os400"', {
520-
'cflags': [ '-m32' ],
521-
'ldflags': [ '-m32' ],
522-
}],
523519
[ 'host_arch=="ppc64" and OS not in "aix os400"', {
524520
'cflags': [ '-m64', '-mminimal-toc' ],
525521
'ldflags': [ '-m64' ],
@@ -540,10 +536,6 @@
540536
'cflags': [ '-m64' ],
541537
'ldflags': [ '-m64' ],
542538
}],
543-
[ 'target_arch=="ppc" and OS not in "aix os400"', {
544-
'cflags': [ '-m32' ],
545-
'ldflags': [ '-m32' ],
546-
}],
547539
[ 'target_arch=="ppc64" and OS not in "aix os400"', {
548540
'cflags': [ '-m64', '-mminimal-toc' ],
549541
'ldflags': [ '-m64' ],

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
4949
'android', 'aix', 'cloudabi', 'os400', 'ios')
50-
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
50+
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el',
5151
'ppc64', 'x64', 'x86', 'x86_64', 's390x', 'riscv64', 'loong64')
5252
valid_arm_float_abi = ('soft', 'softfp', 'hard')
5353
valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')

doc/api/os.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +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'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
58+
`'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
5959
and `'x64'`.
6060

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

doc/api/process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ added: v0.5.0
892892

893893
The operating system CPU architecture for which the Node.js binary was compiled.
894894
Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,
895-
`'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
895+
`'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
896896

897897
```mjs
898898
import { arch } from 'node:process';

test/parallel/test-navigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ assert.strictEqual(getNavigatorPlatform('x64', 'openbsd'), 'OpenBSD amd64');
100100
assert.strictEqual(getNavigatorPlatform('arm64', 'openbsd'), 'OpenBSD arm64');
101101
assert.strictEqual(getNavigatorPlatform('ia32', 'sunos'), 'SunOS i86pc');
102102
assert.strictEqual(getNavigatorPlatform('x64', 'sunos'), 'SunOS x64');
103-
assert.strictEqual(getNavigatorPlatform('ppc', 'aix'), 'AIX');
103+
assert.strictEqual(getNavigatorPlatform('ppc64', 'aix'), 'AIX');
104104
assert.strictEqual(getNavigatorPlatform('x64', 'reactos'), 'Reactos x64');
105105

106106
assert.strictEqual(typeof navigator.language, 'string');

0 commit comments

Comments
 (0)