diff options
author | Nathan Rajlich <nathan@tootallnate.net> | 2012-01-11 14:36:27 -0800 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-12 15:10:11 +0100 |
commit | 9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7 (patch) | |
tree | 1d49c2dc5327912bb29e8669abafe1be35dcc7a0 /node.gyp | |
parent | 7dffbaf2ced12751b73e433b12721efa8b38ad5d (diff) | |
download | nodejs-9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7.tar.gz nodejs-9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7.tar.bz2 nodejs-9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7.zip |
build: set `process.platform` to "darwin" on OS X
This is consistent with the old waf build system, and doesn't break old scripts
that are expecting the value to be "darwin".
Fixes #2518.
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -178,6 +178,10 @@ }], [ 'OS=="mac"', { 'libraries': [ '-framework Carbon' ], + 'defines': [ + # we need to use node's preferred "darwin" rather than gyp's preferred "mac" + 'PLATFORM="darwin"', + ], }], [ 'OS=="linux"', { 'libraries': [ |