summary refs log tree commit diff stats
path: root/tools/vccexe
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vccexe')
-rw-r--r--tools/vccexe/vcvarsall.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/vccexe/vcvarsall.nim b/tools/vccexe/vcvarsall.nim
index db97177b0..798070799 100644
--- a/tools/vccexe/vcvarsall.nim
+++ b/tools/vccexe/vcvarsall.nim
@@ -66,8 +66,9 @@ proc vccVarsAll*(path: string, arch: VccArch = vccarchUnspecified, platform_type
   let comSpecOut = execProcess(comSpecExec, options = comSpecOpts)
   result = newStringTable(modeCaseInsensitive)
   for line in comSpecOut.splitLines:
-    when not defined(release) or defined(debug):
-      echo line
     let idx = line.find('=')
     if idx > 0:
       result[line[0..(idx - 1)]] = line[(idx + 1)..(line.len - 1)]
+    else:
+      when not defined(release) or defined(debug):
+        echo line