projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dffbaf
)
build: set `process.platform` to "darwin" on OS X
author
Nathan Rajlich
<nathan@tootallnate.net>
Wed, 11 Jan 2012 22:36:27 +0000
(14:36 -0800)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 12 Jan 2012 14:10:11 +0000
(15:10 +0100)
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.
node.gyp
patch
|
blob
|
history
diff --git
a/node.gyp
b/node.gyp
index
849b529
..
3123537
100644
(file)
--- a/
node.gyp
+++ b/
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': [