Merge pull request #12526 from fkjagodzinski/fix-gcc_lto_toolchain_py3

GCC: Fix the toolchain LTO workaround for Python 3
pull/12545/head
Martin Kojtal 2020-03-02 09:32:42 +00:00 committed by GitHub
commit d6df32d609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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