summary refs log tree commit diff stats
path: root/tools/vccexe
diff options
context:
space:
mode:
authorTomohiro <gpuppur@gmail.com>2019-01-18 17:00:32 +0900
committerAndreas Rumpf <rumpf_a@web.de>2019-01-18 09:00:32 +0100
commit4b4e4fc029d3f151c1e8bcdafc1d9b381a7142a6 (patch)
tree1a07696f06ce8a379da7c22a355de4b14ec43525 /tools/vccexe
parent1e63f1edb3fa594bcdce39eb5195d5f5d2644e67 (diff)
downloadNim-4b4e4fc029d3f151c1e8bcdafc1d9b381a7142a6.tar.gz
Fix unhandled exception that raised when nim was executed with --cc:vcc option (#10356)
Diffstat (limited to 'tools/vccexe')
-rw-r--r--tools/vccexe/vccenv.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vccexe/vccenv.nim b/tools/vccexe/vccenv.nim
index 6ddf2e29a..724fe992a 100644
--- a/tools/vccexe/vccenv.nim
+++ b/tools/vccexe/vccenv.nim
@@ -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: ""