mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
2d93a4578d
commit
4bd29791ee
|
@ -412,7 +412,7 @@ class GCC(mbedToolchain):
|
||||||
stdout, stderr, rc = run_cmd(cmd, work_dir=getcwd(), chroot=self.CHROOT)
|
stdout, stderr, rc = run_cmd(cmd, work_dir=getcwd(), chroot=self.CHROOT)
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
return False
|
return False
|
||||||
match = self.DWARF_PRODUCER_RE.search(stdout.encode('utf-8'))
|
match = self.DWARF_PRODUCER_RE.search(stdout)
|
||||||
if match:
|
if match:
|
||||||
dw_producer = match.group('producer')
|
dw_producer = match.group('producer')
|
||||||
return 'GNU AS' in dw_producer
|
return 'GNU AS' in dw_producer
|
||||||
|
|
Loading…
Reference in New Issue