diff --git a/node.gyp b/node.gyp index 2e72932b1d..6c8dcee837 100644 --- a/node.gyp +++ b/node.gyp @@ -228,6 +228,9 @@ 'defines!': [ 'PLATFORM="mac"', ], + 'xcode_settings': { + 'DEAD_CODE_STRIPPING': 'YES', + }, 'defines': [ # we need to use node's preferred "darwin" rather than gyp's preferred "mac" 'PLATFORM="darwin"',