* Fix bug: vccexe finds oldest VCC * echo path to vcvarsall.bat as hint when failed to execute cl.exe
This commit is contained in:
parent
c60bb94647
commit
bad5ad6dc7
3 changed files with 22 additions and 11 deletions
|
|
@ -10,7 +10,6 @@ import strtabs, strutils, os, osproc
|
|||
const
|
||||
comSpecEnvKey = "ComSpec" ## Environment Variable that specifies the command-line application path in Windows
|
||||
## Usually set to cmd.exe
|
||||
vcvarsallDefaultPath = "vcvarsall.bat"
|
||||
|
||||
type
|
||||
VccArch* = enum ## The VCC compile target architectures
|
||||
|
|
@ -48,11 +47,10 @@ proc vccVarsAll*(path: string, arch: VccArch = vccarchUnspecified, platform_type
|
|||
## verbose
|
||||
## Echo the command-line passed on to the system to load the VCC environment. Defaults to `false`.
|
||||
|
||||
var vccvarsallpath = path
|
||||
# Assume that default executable is in current directory or in PATH
|
||||
if path == "":
|
||||
vccvarsallpath = vcvarsallDefaultPath
|
||||
return nil
|
||||
|
||||
let vccvarsallpath = path
|
||||
var args: seq[string] = @[]
|
||||
|
||||
let archStr: string = $arch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue