build: target Power 9 and z14

Set compiler flags to match the minimum supported Power and z
architectures.

Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/65439
Refs: https://github.com/nodejs/node/pull/61005
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7239348
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Richard Lau authored and Antoine du Hamel committed 2026-08-26 00:56:18 +02:00
1 parent e8e2abcc8d
commit ddf9f9d265
3 files changed
+16 -10

No files matched your search

+8 -8
View File
@@ -604,12 +604,12 @@
'cflags': [ '-mminimal-toc' ],
}],
],
'cflags': [ '-m64' ],
'ldflags': [ '-m64' ],
'cflags': [ '-m64', '-mcpu=power9' ],
'ldflags': [ '-m64', '-mcpu=power9' ],
}],
[ 'host_arch=="s390x" and OS=="linux"', {
'cflags': [ '-m64', '-march=z196' ],
'ldflags': [ '-m64', '-march=z196' ],
'cflags': [ '-m64', '-march=z14' ],
'ldflags': [ '-m64', '-march=z14' ],
}],
],
}],
@@ -629,12 +629,12 @@
'cflags': [ '-mminimal-toc' ],
}],
],
'cflags': [ '-m64' ],
'ldflags': [ '-m64' ],
'cflags': [ '-m64', '-mcpu=power9' ],
'ldflags': [ '-m64', '-mcpu=power9' ],
}],
[ 'target_arch=="s390x" and OS=="linux"', {
'cflags': [ '-m64', '-march=z196' ],
'ldflags': [ '-m64', '-march=z196' ],
'cflags': [ '-m64', '-march=z14' ],
'ldflags': [ '-m64', '-march=z14' ],
}],
],
}],
+6
View File
@@ -87,6 +87,12 @@
[ 'OS=="aix" or OS=="os400"', {
'cflags': [ '-mcpu=power9' ],
}],
[ 'OS=="linux" and target_arch=="ppc64"', {
'cflags': [ '-mcpu=power9' ],
}],
[ 'OS=="linux" and target_arch=="s390x"', {
'cflags': [ '-march=z14' ],
}],
[ 'node_enable_d8=="true"', {
'dependencies': [ 'tools/v8_gypfiles/d8.gyp:d8' ],
}],
+2 -2
View File
@@ -316,7 +316,7 @@
'V8_TARGET_ARCH_S390_LE_SIM',
],
}, {
'cflags': [ '-march=z196' ],
'cflags': [ '-march=z14' ],
}],
],
}], # s390x
@@ -326,11 +326,11 @@
],
'cflags': [
'-ffp-contract=off',
'-mcpu=power9',
],
'conditions': [
['OS=="aix" or OS=="os400"', {
# Work around AIX ceil, trunc and round oddities.
'cflags': [ '-mcpu=power9' ],
'conditions': [
['clang==0', {
'cflags': [ '-mfprnd' ],