mirror of https://github.com/ARMmbed/mbed-os.git
suppress 'unknown object name' messages
by using the -lto option on gcc and windows, many messages like above are produced. removed by ignoring .ltrans.o filespull/12540/head
parent
06b22d91e3
commit
a33d622f4f
|
@ -113,6 +113,7 @@ class _GccParser(_Parser):
|
||||||
)
|
)
|
||||||
RE_STD_SECTION = re.compile(r'^\s+.*0x(\w{8,16})\s+0x(\w+)\s(.+)$')
|
RE_STD_SECTION = re.compile(r'^\s+.*0x(\w{8,16})\s+0x(\w+)\s(.+)$')
|
||||||
RE_FILL_SECTION = re.compile(r'^\s*\*fill\*\s+0x(\w{8,16})\s+0x(\w+).*$')
|
RE_FILL_SECTION = re.compile(r'^\s*\*fill\*\s+0x(\w{8,16})\s+0x(\w+).*$')
|
||||||
|
RE_TRANS_FILE = re.compile(r'^(.+\/|.+\.ltrans.o(bj)?)$')
|
||||||
OBJECT_EXTENSIONS = (".o", ".obj")
|
OBJECT_EXTENSIONS = (".o", ".obj")
|
||||||
|
|
||||||
ALL_SECTIONS = (
|
ALL_SECTIONS = (
|
||||||
|
@ -148,6 +149,9 @@ class _GccParser(_Parser):
|
||||||
|
|
||||||
return value - an object file name
|
return value - an object file name
|
||||||
"""
|
"""
|
||||||
|
if re.match(self.RE_TRANS_FILE, line):
|
||||||
|
return '[misc]'
|
||||||
|
|
||||||
test_re_mbed_os_name = re.match(self.RE_OBJECT_FILE, line)
|
test_re_mbed_os_name = re.match(self.RE_OBJECT_FILE, line)
|
||||||
|
|
||||||
if test_re_mbed_os_name:
|
if test_re_mbed_os_name:
|
||||||
|
|
Loading…
Reference in New Issue