build: only define NODE_V8_OPTIONS if not empty
authorEvan Lucas <evanlucas@me.com>
Tue, 25 Aug 2015 00:13:22 +0000 (19:13 -0500)
committerEvan Lucas <evanlucas@me.com>
Tue, 25 Aug 2015 16:42:26 +0000 (11:42 -0500)
commitd895d4a320d37242c3daca382a313651c06c7441
treea7a6d242140038a6ecdb5be2442b48716ad04dcd
parent8cdac78bdf2b07b3aea92297e659cc09fca37258
build: only define NODE_V8_OPTIONS if not empty

Previously, V8::SetFlagsFromString was called on every launch even if
NODE_V8_OPTIONS was an empty string. This patch only defines
NODE_V8_OPTIONS if node_v8_options is not an empty string.

PR-URL: https://github.com/nodejs/node/pull/2532
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
node.gyp