summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2012-01-11 14:36:27 -0800
committerBen Noordhuis <info@bnoordhuis.nl>2012-01-12 15:10:11 +0100
commit9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7 (patch)
tree1d49c2dc5327912bb29e8669abafe1be35dcc7a0 /node.gyp
parent7dffbaf2ced12751b73e433b12721efa8b38ad5d (diff)
downloadnode-9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7.tar.gz
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.gyp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 849b529f8..312353754 100644
--- a/node.gyp
+++ b/node.gyp
@@ -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': [