summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node.gyp4
1 files changed, 4 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 849b529f8..312353754 100644
--- 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': [