summary refs log tree commit diff stats
path: root/tools/vccexe
diff options
context:
space:
mode:
authorFredrik Høisæther Rasch <fredrik.rasch@gmail.com>2017-03-21 01:08:57 +0100
committerFredrik Høisæther Rasch <fredrik.h.rasch@uit.no>2017-03-21 12:18:29 +0100
commit5341d36397ed726d4174cba54fc6bdf52fb77074 (patch)
tree8de4102b1d1ba432f52402f73cba1bbaf3541f2e /tools/vccexe
parent86206b253346ac221ca4392b339741064f031970 (diff)
downloadNim-5341d36397ed726d4174cba54fc6bdf52fb77074.tar.gz
Reduced verbosity of vcvarsall
Only lines that are not part of the loaded developer environment are echoed
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