mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-22 20:59:54 +00:00
Reduced verbosity of vcvarsall
Only lines that are not part of the loaded developer environment are echoed
This commit is contained in:
committed by
Fredrik Høisæther Rasch
parent
86206b2533
commit
5341d36397
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user