Skip to content

Commit 44b0e42

Browse files
committed
build: remove support for ppc 32-bit
V8 removed support for it. Refs: v8/v8@6437539 PR-URL: #55014 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 6f96526 commit 44b0e42

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
@@ -943,9 +943,6 @@ else
943943
ifeq ($(findstring ppc64,$(UNAME_M)),ppc64)
944944
DESTCPU ?= ppc64
945945
else
946-
ifeq ($(findstring ppc,$(UNAME_M)),ppc)
947-
DESTCPU ?= ppc
948-
else
949946
ifeq ($(findstring s390x,$(UNAME_M)),s390x)
950947
DESTCPU ?= s390x
951948
else
@@ -986,7 +983,6 @@ endif
986983
endif
987984
endif
988985
endif
989-
endif
990986
ifeq ($(DESTCPU),x64)
991987
ARCH=x64
992988
else
@@ -999,9 +995,6 @@ else
999995
ifeq ($(DESTCPU),ppc64)
1000996
ARCH=ppc64
1001997
else
1002-
ifeq ($(DESTCPU),ppc)
1003-
ARCH=ppc
1004-
else
1005998
ifeq ($(DESTCPU),s390)
1006999
ARCH=s390
10071000
else
@@ -1023,7 +1016,6 @@ endif
10231016
endif
10241017
endif
10251018
endif
1026-
endif
10271019

10281020
# node and v8 use different arch names (e.g. node 'x86' vs v8 'ia32').
10291021
# 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
@@ -111,7 +111,7 @@
111111
'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a',
112112
}],
113113
# V8 pointer compression only supports 64bit architectures.
114-
['target_arch in "arm ia32 mips mipsel ppc"', {
114+
['target_arch in "arm ia32 mips mipsel"', {
115115
'v8_enable_pointer_compression': 0,
116116
'v8_enable_31bit_smis_on_64bit_arch': 0,
117117
'v8_enable_sandbox': 0
@@ -517,10 +517,6 @@
517517
'cflags': [ '-m64' ],
518518
'ldflags': [ '-m64' ],
519519
}],
520-
[ 'host_arch=="ppc" and OS not in "aix os400"', {
521-
'cflags': [ '-m32' ],
522-
'ldflags': [ '-m32' ],
523-
}],
524520
[ 'host_arch=="ppc64" and OS not in "aix os400"', {
525521
'cflags': [ '-m64', '-mminimal-toc' ],
526522
'ldflags': [ '-m64' ],
@@ -541,10 +537,6 @@
541537
'cflags': [ '-m64' ],
542538
'ldflags': [ '-m64' ],
543539
}],
544-
[ 'target_arch=="ppc" and OS not in "aix os400"', {
545-
'cflags': [ '-m32' ],
546-
'ldflags': [ '-m32' ],
547-
}],
548540
[ 'target_arch=="ppc64" and OS not in "aix os400"', {
549541
'cflags': [ '-m64', '-mminimal-toc' ],
550542
'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)