Skip to content

Commit 6be8278

Browse files
committed
Adding case insensitive 'error' detection
GCC Assembler errors were being missed because it prints 'error' with a captial 'E'. This change allows the 'e' to be either lower case or upper case.
1 parent 65956d1 commit 6be8278

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
@@ -25,7 +25,7 @@ class GCC(mbedToolchain):
2525
LIBRARY_EXT = '.a'
2626

2727
STD_LIB_NAME = "lib%s.a"
28-
DIAGNOSTIC_PATTERN = re.compile('((?P<file>[^:]+):(?P<line>\d+):)(\d+:)? (?P<severity>warning|error|fatal error): (?P<message>.+)')
28+
DIAGNOSTIC_PATTERN = re.compile('((?P<file>[^:]+):(?P<line>\d+):)(\d+:)? (?P<severity>warning|[eE]rror|fatal error): (?P<message>.+)')
2929
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
3030

3131
def __init__(self, target, notify=None, macros=None,

0 commit comments

Comments
 (0)