Fix unhandled exception that raised when nim was executed with --cc:vcc option (#10356)
This commit is contained in:
parent
1e63f1edb3
commit
4b4e4fc029
1 changed files with 1 additions and 1 deletions
|
|
@ -44,4 +44,4 @@ proc vccEnvVcVarsAllPath*(version: VccEnvVersion = vsUndefined): string =
|
|||
let key = $version
|
||||
let val = getEnv key
|
||||
if val.len > 0:
|
||||
result = expandFilename(val & vcvarsallRelativePath)
|
||||
result = try: expandFilename(val & vcvarsallRelativePath) except OSError: ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue