From 9ff86a2848c2e047ac05dd0fb6f584d8e3111ab7 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Wed, 11 Jan 2012 14:36:27 -0800 Subject: [PATCH] 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. --- node.gyp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/node.gyp b/node.gyp index 849b529f8c..3123537545 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': [