diff options
author | Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com> | 2015-01-09 15:38:09 +0300 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2015-01-09 19:52:51 +0100 |
commit | 9f45799dd249878de8827d911a8e01bebcb4e4ba (patch) | |
tree | dfa47b50976e1e67f0db01f8ba54bca615996690 /node.gyp | |
parent | be2404e0d3e3e4e46e5209f60bca0591a4e47939 (diff) | |
download | nodejs-9f45799dd249878de8827d911a8e01bebcb4e4ba.tar.gz nodejs-9f45799dd249878de8827d911a8e01bebcb4e4ba.tar.bz2 nodejs-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.gyp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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"', { |