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:
Alexei Lozovsky
2020-06-14 20:55:01 +03:00
committed by GitHub
parent 5a6b51d5ac
commit be0a358ece
+5
View File
@@ -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')
}