summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp5
1 files changed, 4 insertions, 1 deletions
diff --git a/node.gyp b/node.gyp
index 2b530f15f1..dfa08ce646 100644
--- a/node.gyp
+++ b/node.gyp
@@ -184,12 +184,15 @@
'defines': [
'NODE_ARCH="<(target_arch)"',
'NODE_PLATFORM="<(OS)"',
- 'NODE_TAG="<(node_tag)"',
'NODE_V8_OPTIONS="<(node_v8_options)"',
'NODE_WANT_INTERNALS=1',
],
+
'conditions': [
+ [ 'node_tag!=""', {
+ 'defines': [ 'NODE_TAG="<(node_tag)"' ],
+ }],
# No node_main.cc for anything except executable
[ 'node_target_type!="executable"', {
'sources!': [