Skip to content

Commit 1053401

Browse files
committed
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.
1 parent b481da4 commit 1053401

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
@@ -106,6 +106,7 @@ def parse_output(self, output):
106106
if match is not None:
107107
if msg is not None:
108108
self.cc_info(msg)
109+
msg = None
109110
msg = {
110111
'severity': match.group('severity').lower(),
111112
'file': match.group('file'),

tools/toolchains/gcc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def parse_output(self, output):
146146
if match is not None:
147147
if msg is not None:
148148
self.cc_info(msg)
149+
msg = None
149150
msg = {
150151
'severity': match.group('severity').lower(),
151152
'file': match.group('file'),
@@ -166,6 +167,9 @@ def parse_output(self, output):
166167
else:
167168
msg['text'] += line+"\n"
168169

170+
if msg is not None:
171+
self.cc_info(msg)
172+
169173
def get_dep_option(self, object):
170174
base, _ = splitext(object)
171175
dep_path = base + '.d'

tools/toolchains/iar.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def parse_output(self, output):
123123
if match is not None:
124124
if msg is not None:
125125
self.cc_info(msg)
126+
msg = None
126127
msg = {
127128
'severity': match.group('severity').lower(),
128129
'file': match.group('file'),
@@ -143,6 +144,9 @@ def parse_output(self, output):
143144
else:
144145
msg['text'] += line+"\n"
145146

147+
if msg is not None:
148+
self.cc_info(msg)
149+
146150
def get_dep_option(self, object):
147151
base, _ = splitext(object)
148152
dep_path = base + '.d'

0 commit comments

Comments
 (0)