From 5341d36397ed726d4174cba54fc6bdf52fb77074 Mon Sep 17 00:00:00 2001 From: Fredrik Høisæther Rasch Date: Tue, 21 Mar 2017 01:08:57 +0100 Subject: Reduced verbosity of vcvarsall Only lines that are not part of the loaded developer environment are echoed --- tools/vccexe/vcvarsall.nim | 5 +++-- 1 file 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 -- cgit 1.4.1-2-gfad0