Skip to content

Commit d6df32d

Browse files
authored
Merge pull request #12526 from fkjagodzinski/fix-gcc_lto_toolchain_py3
GCC: Fix the toolchain LTO workaround for Python 3
2 parents 06b22d9 + 4bd2979 commit d6df32d

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)