Making all toolchains print final compiler message.

This functionality was already present in the ARM toolchain script, but
this commit adds this across all toolchain scripts. Solves an issue that
cropped up where a build error wasn't being printed unless the verbose
flag was used. This should now print any existing error messages that have
been printed when the compiler output is being parsed.
pull/2856/head
Brian Daniels 2016-09-28 14:42:35 -05:00
parent b481da44e9
commit 10534019b9
3 changed files with 9 additions and 0 deletions

View File

@ -106,6 +106,7 @@ class ARM(mbedToolchain):
if match is not None:
if msg is not None:
self.cc_info(msg)
msg = None
msg = {
'severity': match.group('severity').lower(),
'file': match.group('file'),

View File

@ -146,6 +146,7 @@ class GCC(mbedToolchain):
if match is not None:
if msg is not None:
self.cc_info(msg)
msg = None
msg = {
'severity': match.group('severity').lower(),
'file': match.group('file'),
@ -166,6 +167,9 @@ class GCC(mbedToolchain):
else:
msg['text'] += line+"\n"
if msg is not None:
self.cc_info(msg)
def get_dep_option(self, object):
base, _ = splitext(object)
dep_path = base + '.d'

View File

@ -123,6 +123,7 @@ class IAR(mbedToolchain):
if match is not None:
if msg is not None:
self.cc_info(msg)
msg = None
msg = {
'severity': match.group('severity').lower(),
'file': match.group('file'),
@ -143,6 +144,9 @@ class IAR(mbedToolchain):
else:
msg['text'] += line+"\n"
if msg is not None:
self.cc_info(msg)
def get_dep_option(self, object):
base, _ = splitext(object)
dep_path = base + '.d'