Skip to content

Commit 761ec44

Browse files
authored
Merge pull request #2856 from bridadan/fixing-missed-build-error-prints
[Tools] Making all toolchains print final compiler message
2 parents b0b7b3c + 1053401 commit 761ec44

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tools/toolchains/arm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def parse_output(self, output):
8787
if match is not None:
8888
if msg is not None:
8989
self.cc_info(msg)
90+
msg = None
9091
msg = {
9192
'severity': match.group('severity').lower(),
9293
'file': match.group('file'),

tools/toolchains/gcc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def parse_output(self, output):
118118
if match is not None:
119119
if msg is not None:
120120
self.cc_info(msg)
121+
msg = None
121122
msg = {
122123
'severity': match.group('severity').lower(),
123124
'file': match.group('file'),
@@ -138,6 +139,9 @@ def parse_output(self, output):
138139
else:
139140
msg['text'] += line+"\n"
140141

142+
if msg is not None:
143+
self.cc_info(msg)
144+
141145
def get_dep_option(self, object):
142146
base, _ = splitext(object)
143147
dep_path = base + '.d'

tools/toolchains/iar.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def parse_output(self, output):
102102
if match is not None:
103103
if msg is not None:
104104
self.cc_info(msg)
105+
msg = None
105106
msg = {
106107
'severity': match.group('severity').lower(),
107108
'file': match.group('file'),
@@ -122,6 +123,9 @@ def parse_output(self, output):
122123
else:
123124
msg['text'] += line+"\n"
124125

126+
if msg is not None:
127+
self.cc_info(msg)
128+
125129
def get_dep_option(self, object):
126130
base, _ = splitext(object)
127131
dep_path = base + '.d'

0 commit comments

Comments
 (0)