Merge pull request #2856 from bridadan/fixing-missed-build-error-prints

[Tools] Making all toolchains print final compiler message
pull/2859/head
Sam Grove 2016-09-30 15:01:20 -05:00 committed by GitHub
commit 761ec4423b
3 changed files with 9 additions and 0 deletions

View File

@ -87,6 +87,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

@ -118,6 +118,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'),
@ -138,6 +139,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

@ -102,6 +102,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'),
@ -122,6 +123,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'