Improve armcc output regex pattern to handle armasm messages

pull/1078/head
Mihail Stoyanov 2015-04-09 20:45:43 +03:00
parent 5a81e89daa
commit 06e8a0825b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class ARM(mbedToolchain):
LIBRARY_EXT = '.ar'
STD_LIB_NAME = "%s.ar"
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)", line (?P<line>\d+): (?P<severity>Warning|Error): (?P<message>.+)')
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)", line (?P<line>\d+)( \(column (?P<column>\d+)\)|): (?P<severity>Warning|Error): (?P<message>.+)')
DEP_PATTERN = re.compile('\S+:\s(?P<file>.+)\n')
def __init__(self, target, options=None, notify=None, macros=None, silent=False):