From 0ef99de9da809ccbb908cf281f79d650d49b0a7c Mon Sep 17 00:00:00 2001 From: Stewart X Addison <6487691+sxa@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:38:19 +0000 Subject: [PATCH] build: aix: deoptimize implementation-visitor.cc with --shared PR-URL: https://github.com/nodejs/node/pull/61550 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig --- tools/v8_gypfiles/v8.gyp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index f323d8fba68..e09fcc1ce8c 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -1429,6 +1429,15 @@ 'ExceptionHandling': 1, }, }, + # Reduce optimisation of one file on AIX - it causes torque + # to segfault if you build node with "--shared" + 'conditions': [ + ['OS=="aix" and node_shared=="true"', { + 'cflags': ['-O1'], + 'cflags!': ['-O3'], + 'sources': ['<(V8_ROOT)/src/torque/implementation-visitor.cc'], + }], + ], }, # torque_base { 'target_name': 'torque_ls_base',