diff --git a/common.gypi b/common.gypi index c05b793e95..542214218a 100644 --- a/common.gypi +++ b/common.gypi @@ -21,7 +21,7 @@ ['OS != "win"', { 'v8_postmortem_support': 'true' }], - ['GENERATOR == "ninja"', { + ['GENERATOR == "ninja" or OS== "mac"', { 'OBJ_DIR': '<(PRODUCT_DIR)/obj', 'V8_BASE': '<(PRODUCT_DIR)/libv8_base.a', }, { diff --git a/node.gyp b/node.gyp index f6586c4d44..38311a1cc4 100644 --- a/node.gyp +++ b/node.gyp @@ -271,6 +271,14 @@ 'PLATFORM="darwin"', ], }], + [ 'OS=="mac" and v8_postmortem_support=="true"', { + # Do not let `v8dbg_` symbols slip away + 'xcode_settings': { + 'OTHER_LDFLAGS': [ + '-Wl,-force_load,<(V8_BASE)', + ], + }, + }], [ 'OS=="freebsd"', { 'libraries': [ '-lutil',