Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 1c1f841

Browse files
author
Silvio Guiso
committed
Decodes bitstream to string
1 parent c2d2bd1 commit 1c1f841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/pgocheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
def was_compiled_with_pgo(filename):
2929
headers = subprocess.check_output(["link", "/dump", "/headers", filename])
3030

31-
match = pgo_pattern.search(headers)
31+
match = pgo_pattern.search(headers.decode('utf-8'))
3232

3333
result = False
3434
tech = "UNKNOWN"
@@ -74,4 +74,4 @@ def was_compiled_with_pgo(filename):
7474
stderr.write("ERROR: The files listed above must be compiled with PGO\n")
7575
else:
7676
stderr.write("ERROR: The files listed above must NOT be compiled with PGO\n")
77-
exit(1)
77+
exit(1)

0 commit comments

Comments
 (0)