Reduced verbosity of vcvarsall
Only lines that are not part of the loaded developer environment are echoed
This commit is contained in:
parent
86206b2533
commit
5341d36397
1 changed files with 3 additions and 2 deletions
|
|
@ -66,8 +66,9 @@ proc vccVarsAll*(path: string, arch: VccArch = vccarchUnspecified, platform_type
|
||||||
let comSpecOut = execProcess(comSpecExec, options = comSpecOpts)
|
let comSpecOut = execProcess(comSpecExec, options = comSpecOpts)
|
||||||
result = newStringTable(modeCaseInsensitive)
|
result = newStringTable(modeCaseInsensitive)
|
||||||
for line in comSpecOut.splitLines:
|
for line in comSpecOut.splitLines:
|
||||||
when not defined(release) or defined(debug):
|
|
||||||
echo line
|
|
||||||
let idx = line.find('=')
|
let idx = line.find('=')
|
||||||
if idx > 0:
|
if idx > 0:
|
||||||
result[line[0..(idx - 1)]] = line[(idx + 1)..(line.len - 1)]
|
result[line[0..(idx - 1)]] = line[(idx + 1)..(line.len - 1)]
|
||||||
|
else:
|
||||||
|
when not defined(release) or defined(debug):
|
||||||
|
echo line
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue