Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: set process.platform to "darwin" on OS X
Browse files Browse the repository at this point in the history
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
TooTallNate authored and bnoordhuis committed Jan 12, 2012
1 parent 7dffbaf commit 9ff86a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node.gyp
Expand Up @@ -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': [
Expand Down

0 comments on commit 9ff86a2

Please sign in to comment.