Skip to content

Commit 06e8a08

Browse files
committed
Improve armcc output regex pattern to handle armasm messages
1 parent 5a81e89 commit 06e8a08

File tree

1 file changed

+1
-1
lines changed
  • workspace_tools/toolchains

1 file changed

+1
-1
lines changed

workspace_tools/toolchains/arm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ARM(mbedToolchain):
2727
LIBRARY_EXT = '.ar'
2828

2929
STD_LIB_NAME = "%s.ar"
30-
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)", line (?P<line>\d+): (?P<severity>Warning|Error): (?P<message>.+)')
30+
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)", line (?P<line>\d+)( \(column (?P<column>\d+)\)|): (?P<severity>Warning|Error): (?P<message>.+)')
3131
DEP_PATTERN = re.compile('\S+:\s(?P<file>.+)\n')
3232

3333
def __init__(self, target, options=None, notify=None, macros=None, silent=False):

0 commit comments

Comments
 (0)