Reduced verbosity of vcvarsall

Only lines that are not part of the loaded developer environment are echoed
This commit is contained in:
Fredrik Høisæther Rasch
2017-03-21 01:08:57 +01:00
committed by Fredrik Høisæther Rasch
parent 86206b2533
commit 5341d36397

View File

@@ -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