summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>2015-01-09 15:38:09 +0300
committerBert Belder <bertbelder@gmail.com>2015-01-09 19:52:51 +0100
commit9f45799dd249878de8827d911a8e01bebcb4e4ba (patch)
treedfa47b50976e1e67f0db01f8ba54bca615996690 /node.gyp
parentbe2404e0d3e3e4e46e5209f60bca0591a4e47939 (diff)
downloadandroid-node-v8-9f45799dd249878de8827d911a8e01bebcb4e4ba.tar.gz
android-node-v8-9f45799dd249878de8827d911a8e01bebcb4e4ba.tar.bz2
android-node-v8-9f45799dd249878de8827d911a8e01bebcb4e4ba.zip
build: fix `process.platform`
e1fe270 introduces the NODE_PLATFORM macro which had to be redefined in node.gyp for `process.platform` to return expected values. PR-URL: https://github.com/iojs/io.js/pull/271 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp10
1 files changed, 5 insertions, 5 deletions
diff --git a/node.gyp b/node.gyp
index 43622958ec..1063e182c8 100644
--- a/node.gyp
+++ b/node.gyp
@@ -325,7 +325,7 @@
'defines': [
'FD_SETSIZE=1024',
# we need to use node's preferred "win32" rather than gyp's preferred "win"
- 'PLATFORM="win32"',
+ 'NODE_PLATFORM="win32"',
'_UNICODE=1',
],
'libraries': [ '-lpsapi.lib' ]
@@ -337,11 +337,11 @@
# like Instruments require it for some features
'libraries': [ '-framework CoreFoundation' ],
'defines!': [
- 'PLATFORM="mac"',
+ 'NODE_PLATFORM="mac"',
],
'defines': [
# we need to use node's preferred "darwin" rather than gyp's preferred "mac"
- 'PLATFORM="darwin"',
+ 'NODE_PLATFORM="darwin"',
],
}],
[ 'OS=="freebsd"', {
@@ -356,12 +356,12 @@
'-lumem',
],
'defines!': [
- 'PLATFORM="solaris"',
+ 'NODE_PLATFORM="solaris"',
],
'defines': [
# we need to use node's preferred "sunos"
# rather than gyp's preferred "solaris"
- 'PLATFORM="sunos"',
+ 'NODE_PLATFORM="sunos"',
],
}],
[ 'OS=="freebsd" or OS=="linux"', {