Skip to content

Commit

Permalink
format can include flavor so use startsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Jun 6, 2024
1 parent a43d5f2 commit 943e9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 943e9d4

Please sign in to comment.