summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/lib/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/node-gyp/lib/build.js')
-rw-r--r--deps/npm/node_modules/node-gyp/lib/build.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/npm/node_modules/node-gyp/lib/build.js b/deps/npm/node_modules/node-gyp/lib/build.js
index 0445fb6452..2f8e14c374 100644
--- a/deps/npm/node_modules/node-gyp/lib/build.js
+++ b/deps/npm/node_modules/node-gyp/lib/build.js
@@ -23,6 +23,10 @@ function build (gyp, argv, callback) {
platformMake = 'gmake'
} else if (process.platform.indexOf('bsd') !== -1) {
platformMake = 'gmake'
+ } else if (win && argv.length > 0) {
+ argv = argv.map(function(target) {
+ return '/t:' + target
+ })
}
var release = processRelease(argv, gyp, process.version, process.release)