fix vccexe not using correct path for detecting vcvarsall (#10364)
This commit is contained in:
parent
32a90f7406
commit
5491f40d54
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ type
|
|||
vs140 = (140, "VS140COMNTOOLS") ## Visual Studio 2015
|
||||
|
||||
const
|
||||
vcvarsallRelativePath = joinPath("..", "..", "VC", "vcvarsall") ## Relative path from the COMNTOOLS path to the vcvarsall file.
|
||||
vcvarsallRelativePath = joinPath("..", "..", "VC", "vcvarsall.bat") ## Relative path from the COMNTOOLS path to the vcvarsall file.
|
||||
|
||||
proc vccEnvVcVarsAllPath*(version: VccEnvVersion = vsUndefined): string =
|
||||
## Returns the path to the VCC Developer Command Prompt executable for the specified VCC version.
|
||||
|
|
@ -44,4 +44,4 @@ proc vccEnvVcVarsAllPath*(version: VccEnvVersion = vsUndefined): string =
|
|||
let key = $version
|
||||
let val = getEnv key
|
||||
if val.len > 0:
|
||||
result = try: expandFilename(val & vcvarsallRelativePath) except OSError: ""
|
||||
result = try: expandFilename(joinPath(val, vcvarsallRelativePath)) except OSError: ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue