GCC: Fix the GCC_ARM_LTO_WORKAROUND for Python 3

In the Python3 version of re module, the Unicode strings (str) and 8-bit
strings (bytes) cannot be mixed.
pull/12526/head
Filip Jagodzinski 2020-02-27 12:58:36 +01:00
parent 2d93a4578d
commit 4bd29791ee
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ class GCC(mbedToolchain):
stdout, stderr, rc = run_cmd(cmd, work_dir=getcwd(), chroot=self.CHROOT)
if rc != 0:
return False
match = self.DWARF_PRODUCER_RE.search(stdout.encode('utf-8'))
match = self.DWARF_PRODUCER_RE.search(stdout)
if match:
dw_producer = match.group('producer')
return 'GNU AS' in dw_producer