mirror of
https://github.com/ilammy/msvc-dev-cmd.git
synced 2026-09-07 06:07:19 +08:00
Look for vcbuildtools.bat of VS 2015 as well (#9)
"Visual C++" has its build tool batch files in a different place. Let's look there as well if we have not found 2017 or 2019 stuff. Thanks to ReactOS project for figuring this out. Co-authored-by: Victor Perevertkin <victor.perevertkin@reactos.org>
This commit is contained in:
@@ -31,6 +31,11 @@ function findVcvarsall() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Special case for Visual Studio 2015 (and maybe earlier), try it out too.
|
||||||
|
const path = `${programFiles}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`
|
||||||
|
if (fs.existsSync(path)) {
|
||||||
|
return path
|
||||||
|
}
|
||||||
throw new Error('Microsoft Visual Studio not found')
|
throw new Error('Microsoft Visual Studio not found')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user