mirror of https://gitlab.com/ita1024/waf.git
Colorgcc for other compilers? Issue 1732
This commit is contained in:
parent
fd2981f91f
commit
8114914e62
|
@ -18,7 +18,7 @@ class ColorGCCFormatter(Logs.formatter):
|
||||||
while frame:
|
while frame:
|
||||||
func = frame.f_code.co_name
|
func = frame.f_code.co_name
|
||||||
if func == 'exec_command':
|
if func == 'exec_command':
|
||||||
cmd = frame.f_locals['cmd']
|
cmd = frame.f_locals.get('cmd')
|
||||||
if isinstance(cmd, list) and ('gcc' in cmd[0] or 'g++' in cmd[0]):
|
if isinstance(cmd, list) and ('gcc' in cmd[0] or 'g++' in cmd[0]):
|
||||||
lines = []
|
lines = []
|
||||||
for line in rec.msg.splitlines():
|
for line in rec.msg.splitlines():
|
||||||
|
|
Loading…
Reference in New Issue