Browse Source

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.
v0.7.4-release
Nathan Rajlich 13 years ago
committed by Ben Noordhuis
parent
commit
9ff86a2848
  1. 4
      node.gyp

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

Loading…
Cancel
Save