mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
e8e2abcc8d
commit
ddf9f9d265
3 files changed
+16
-10
No files matched your search
+8
-8
@@ -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' ],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
|
||||
@@ -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' ],
|
||||
}],
|
||||
|
||||
@@ -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' ],
|
||||
|
||||
Reference in new issue
Block a user