diff options
author | Fredrik Høisæther Rasch <fredrik.rasch@gmail.com> | 2017-03-21 01:08:57 +0100 |
---|---|---|
committer | Fredrik Høisæther Rasch <fredrik.h.rasch@uit.no> | 2017-03-21 12:18:29 +0100 |
commit | 5341d36397ed726d4174cba54fc6bdf52fb77074 (patch) | |
tree | 8de4102b1d1ba432f52402f73cba1bbaf3541f2e /tools/vccexe | |
parent | 86206b253346ac221ca4392b339741064f031970 (diff) | |
download | Nim-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.nim | 5 |
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 |