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.
This commit is contained in:
Nathan Rajlich
2012-01-11 14:36:27 -08:00
committed by Ben Noordhuis
parent 7dffbaf2ce
commit 9ff86a2848

View File

@@ -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': [