* Fix bug: vccexe finds oldest VCC

* echo path to vcvarsall.bat as hint when failed to execute cl.exe
This commit is contained in:
Tomohiro 2019-01-23 23:02:26 +09:00 • committed by Andreas Rumpf
commit bad5ad6dc7
3 changed files with 22 additions and 11 deletions

View file

@ -39,7 +39,7 @@ proc vccEnvVcVarsAllPath*(version: VccEnvVersion = vsUndefined): string =
for tryVersion in [vs140, vs120, vs110, vs100, vs90]:
let tryPath = vccEnvVcVarsAllPath(tryVersion)
if tryPath.len > 0:
result = tryPath
return tryPath
else: # Specific version requested
let key = $version
let val = getEnv key