Permalink
Browse files

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.
  • Loading branch information...
1 parent 7dffbaf commit 9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7 @TooTallNate TooTallNate committed with bnoordhuis 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 9ff86a2

Please sign in to comment.