Fix unhandled exception that raised when nim was executed with --cc:vcc option (#10356)

This commit is contained in:
Tomohiro
2019-01-18 17:00:32 +09:00
committed by Andreas Rumpf
parent 1e63f1edb3
commit 4b4e4fc029

View File

@@ -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: ""