mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00
build: remove support for ppc 32-bit
V8 removed support for it.
Refs: 643753953a
PR-URL: https://github.com/nodejs/node/pull/55014
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
parent
6f965260dd
commit
44b0e423dc
8
Makefile
8
Makefile
@ -943,9 +943,6 @@ else
|
||||
ifeq ($(findstring ppc64,$(UNAME_M)),ppc64)
|
||||
DESTCPU ?= ppc64
|
||||
else
|
||||
ifeq ($(findstring ppc,$(UNAME_M)),ppc)
|
||||
DESTCPU ?= ppc
|
||||
else
|
||||
ifeq ($(findstring s390x,$(UNAME_M)),s390x)
|
||||
DESTCPU ?= s390x
|
||||
else
|
||||
@ -986,7 +983,6 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifeq ($(DESTCPU),x64)
|
||||
ARCH=x64
|
||||
else
|
||||
@ -999,9 +995,6 @@ else
|
||||
ifeq ($(DESTCPU),ppc64)
|
||||
ARCH=ppc64
|
||||
else
|
||||
ifeq ($(DESTCPU),ppc)
|
||||
ARCH=ppc
|
||||
else
|
||||
ifeq ($(DESTCPU),s390)
|
||||
ARCH=s390
|
||||
else
|
||||
@ -1023,7 +1016,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.
|
||||
|
10
common.gypi
10
common.gypi
@ -111,7 +111,7 @@
|
||||
'v8_base': '<(PRODUCT_DIR)/libv8_snapshot.a',
|
||||
}],
|
||||
# V8 pointer compression only supports 64bit architectures.
|
||||
['target_arch in "arm ia32 mips mipsel ppc"', {
|
||||
['target_arch in "arm ia32 mips mipsel"', {
|
||||
'v8_enable_pointer_compression': 0,
|
||||
'v8_enable_31bit_smis_on_64bit_arch': 0,
|
||||
'v8_enable_sandbox': 0
|
||||
@ -517,10 +517,6 @@
|
||||
'cflags': [ '-m64' ],
|
||||
'ldflags': [ '-m64' ],
|
||||
}],
|
||||
[ 'host_arch=="ppc" and OS not in "aix os400"', {
|
||||
'cflags': [ '-m32' ],
|
||||
'ldflags': [ '-m32' ],
|
||||
}],
|
||||
[ 'host_arch=="ppc64" and OS not in "aix os400"', {
|
||||
'cflags': [ '-m64', '-mminimal-toc' ],
|
||||
'ldflags': [ '-m64' ],
|
||||
@ -541,10 +537,6 @@
|
||||
'cflags': [ '-m64' ],
|
||||
'ldflags': [ '-m64' ],
|
||||
}],
|
||||
[ 'target_arch=="ppc" and OS not in "aix os400"', {
|
||||
'cflags': [ '-m32' ],
|
||||
'ldflags': [ '-m32' ],
|
||||
}],
|
||||
[ 'target_arch=="ppc64" and OS not in "aix os400"', {
|
||||
'cflags': [ '-m64', '-mminimal-toc' ],
|
||||
'ldflags': [ '-m64' ],
|
||||
|
@ -47,7 +47,7 @@ parser = argparse.ArgumentParser()
|
||||
|
||||
valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
|
||||
'android', 'aix', 'cloudabi', 'os400', 'ios')
|
||||
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
|
||||
valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el',
|
||||
'ppc64', 'x64', 'x86', 'x86_64', 's390x', 'riscv64', 'loong64')
|
||||
valid_arm_float_abi = ('soft', 'softfp', 'hard')
|
||||
valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
|
||||
|
@ -55,7 +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'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
|
||||
`'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`,
|
||||
and `'x64'`.
|
||||
|
||||
The return value is equivalent to [`process.arch`][].
|
||||
|
@ -892,7 +892,7 @@ added: v0.5.0
|
||||
|
||||
The operating system CPU architecture for which the Node.js binary was compiled.
|
||||
Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`,
|
||||
`'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
||||
`'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
||||
|
||||
```mjs
|
||||
import { arch } from 'node:process';
|
||||
|
@ -100,7 +100,7 @@ assert.strictEqual(getNavigatorPlatform('x64', 'openbsd'), 'OpenBSD amd64');
|
||||
assert.strictEqual(getNavigatorPlatform('arm64', 'openbsd'), 'OpenBSD arm64');
|
||||
assert.strictEqual(getNavigatorPlatform('ia32', 'sunos'), 'SunOS i86pc');
|
||||
assert.strictEqual(getNavigatorPlatform('x64', 'sunos'), 'SunOS x64');
|
||||
assert.strictEqual(getNavigatorPlatform('ppc', 'aix'), 'AIX');
|
||||
assert.strictEqual(getNavigatorPlatform('ppc64', 'aix'), 'AIX');
|
||||
assert.strictEqual(getNavigatorPlatform('x64', 'reactos'), 'Reactos x64');
|
||||
|
||||
assert.strictEqual(typeof navigator.language, 'string');
|
||||
|
Loading…
Reference in New Issue
Block a user