diff --git a/lib/configure.js b/lib/configure.js index af1cb50599..25987bbb51 100644 --- a/lib/configure.js +++ b/lib/configure.js @@ -97,7 +97,7 @@ async function configure (gyp, argv) { if (gypFormatIndex === -1) { gypFormatIndex = argv.indexOf('--format') } - if (gypFormatIndex === -1 || !argv[gypFormatIndex + 1] || argv[gypFormatIndex + 1] === 'msvs') { + if (gypFormatIndex === -1 || !argv[gypFormatIndex + 1] || argv[gypFormatIndex + 1].startsWith('msvs')) { const vsInfo = await findVisualStudio(release.semver, gyp.opts['msvs-version']) return createConfigFile(vsInfo) }