Permalink
Browse files

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.
  • Loading branch information...
1 parent 0321adb commit ac8a29e60051b138555f6f5d2b0511fbeadf22fc @TooTallNate committed Jan 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 node.gyp
View
@@ -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': [

0 comments on commit ac8a29e

Please sign in to comment.