mirror of https://github.com/ARMmbed/mbed-os.git
Adding fatal error detection to toolchians.
Before the toolchains would ignore error messages that contained the string "Fatal error". This would lead to a silent failure unless the compile command was ran with verbose options. This is now fixed.pull/3755/head
parent
a81d9329bc
commit
d2a86635ea
|
@ -26,7 +26,7 @@ class ARM(mbedToolchain):
|
||||||
LIBRARY_EXT = '.ar'
|
LIBRARY_EXT = '.ar'
|
||||||
|
|
||||||
STD_LIB_NAME = "%s.ar"
|
STD_LIB_NAME = "%s.ar"
|
||||||
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)", line (?P<line>\d+)( \(column (?P<column>\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|Fatal error): (?P<message>.+)')
|
||||||
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
|
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
|
||||||
DEP_PATTERN = re.compile('\S+:\s(?P<file>.+)\n')
|
DEP_PATTERN = re.compile('\S+:\s(?P<file>.+)\n')
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class GCC(mbedToolchain):
|
||||||
LIBRARY_EXT = '.a'
|
LIBRARY_EXT = '.a'
|
||||||
|
|
||||||
STD_LIB_NAME = "lib%s.a"
|
STD_LIB_NAME = "lib%s.a"
|
||||||
DIAGNOSTIC_PATTERN = re.compile('((?P<file>[^:]+):(?P<line>\d+):)(\d+:)? (?P<severity>warning|error): (?P<message>.+)')
|
DIAGNOSTIC_PATTERN = re.compile('((?P<file>[^:]+):(?P<line>\d+):)(\d+:)? (?P<severity>warning|error|fatal error): (?P<message>.+)')
|
||||||
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
|
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
|
||||||
|
|
||||||
def __init__(self, target, notify=None, macros=None,
|
def __init__(self, target, notify=None, macros=None,
|
||||||
|
|
|
@ -26,7 +26,7 @@ class IAR(mbedToolchain):
|
||||||
LINKER_EXT = '.icf'
|
LINKER_EXT = '.icf'
|
||||||
STD_LIB_NAME = "%s.a"
|
STD_LIB_NAME = "%s.a"
|
||||||
|
|
||||||
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)",(?P<line>[\d]+)\s+(?P<severity>Warning|Error)(?P<message>.+)')
|
DIAGNOSTIC_PATTERN = re.compile('"(?P<file>[^"]+)",(?P<line>[\d]+)\s+(?P<severity>Warning|Error|Fatal error)(?P<message>.+)')
|
||||||
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
|
INDEX_PATTERN = re.compile('(?P<col>\s*)\^')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue