From af481960c600b4a3151b4c54542ef4d6c724fd62 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Tue, 17 Mar 2026 12:50:07 +0000 Subject: [PATCH] build: target Power 9 for AIX/IBM i Minimum supported Power architecture for AIX and IBM i is now Power 9. --- node.gypi | 3 +++ tools/v8_gypfiles/toolchain.gypi | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/node.gypi b/node.gypi index 559330fba8b1ca..64250ed19837e4 100644 --- a/node.gypi +++ b/node.gypi @@ -84,6 +84,9 @@ }, { # POSIX 'defines': [ '__POSIX__' ], }], + [ 'OS=="aix" or OS=="os400"', { + 'cflags': [ '-mcpu=power9' ], + }], [ 'node_enable_d8=="true"', { 'dependencies': [ 'tools/v8_gypfiles/d8.gyp:d8' ], }], diff --git a/tools/v8_gypfiles/toolchain.gypi b/tools/v8_gypfiles/toolchain.gypi index e614c39a6b53b9..b11be560e966e6 100644 --- a/tools/v8_gypfiles/toolchain.gypi +++ b/tools/v8_gypfiles/toolchain.gypi @@ -330,7 +330,7 @@ 'conditions': [ ['OS=="aix" or OS=="os400"', { # Work around AIX ceil, trunc and round oddities. - 'cflags': [ '-mcpu=power5+ -mfprnd' ], + 'cflags': [ '-mcpu=power9 -mfprnd' ], }], ['OS=="aix" or OS=="os400"', { # Work around AIX assembler popcntb bug.