From d341da8adffa6c6022295bea36c6906376fc7b5e Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Mon, 26 Jan 2026 18:37:21 +0000 Subject: [PATCH] build: aix: deoptimize implementation-visitor.cc with --shared --- 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 f323d8fba68f96..e09fcc1ce8c59f 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',