Skip to content

Commit 20ddba6

Browse files
committed
Fixing issue where GCC fails to report compile errors when non-verbose
The output of the GCC compiler is such that the toolchain regex sometimes got hung up on the ':' charcter being printed in front of the drive letter when running on Windows. This PR changes the matching logic to be more flexible by using 'search' to check the entire string for a match, not just the beginning of the string.
1 parent 8d36877 commit 20ddba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/toolchains/gcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def parse_output(self, output):
138138
# The warning/error notification is multiline
139139
msg = None
140140
for line in output.splitlines():
141-
match = GCC.DIAGNOSTIC_PATTERN.match(line)
141+
match = GCC.DIAGNOSTIC_PATTERN.search(line)
142142
if match is not None:
143143
if msg is not None:
144144
self.cc_info(msg)

0 commit comments

Comments
 (0)