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',