diff --git a/node.gyp b/node.gyp index d86cd1ce9ab87f..7716287d345529 100644 --- a/node.gyp +++ b/node.gyp @@ -179,7 +179,6 @@ 'defines': [ 'NODE_ARCH="<(target_arch)"', 'NODE_PLATFORM="<(OS)"', - 'NODE_V8_OPTIONS="<(node_v8_options)"', 'NODE_WANT_INTERNALS=1', ], @@ -188,6 +187,9 @@ [ 'node_tag!=""', { 'defines': [ 'NODE_TAG="<(node_tag)"' ], }], + [ 'node_v8_options!=""', { + 'defines': [ 'NODE_V8_OPTIONS="<(node_v8_options)"'], + }], # No node_main.cc for anything except executable [ 'node_target_type!="executable"', { 'sources!': [