Skip to content

Commit 4bd2979

Browse files
author
Filip Jagodzinski
committed
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.
1 parent 2d93a45 commit 4bd2979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/toolchains/gcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def check_if_obj_from_asm(self, obj_file):
412412
stdout, stderr, rc = run_cmd(cmd, work_dir=getcwd(), chroot=self.CHROOT)
413413
if rc != 0:
414414
return False
415-
match = self.DWARF_PRODUCER_RE.search(stdout.encode('utf-8'))
415+
match = self.DWARF_PRODUCER_RE.search(stdout)
416416
if match:
417417
dw_producer = match.group('producer')
418418
return 'GNU AS' in dw_producer

0 commit comments

Comments
 (0)