summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/clang-runtime-3.7-fix-build-with-python3.patch
blob: 042f0e025a4bb704f5b930f88fcb2829bff88c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Patch based on changes from
https://github.com/llvm/llvm-project/commit/c1fde4fa943fd03a3d40bc5d32b9e0045fd29208

diff --git a/lib/sanitizer_common/scripts/gen_dynamic_list.py b/lib/sanitizer_common/scripts/gen_dynamic_list.py
index 5ea2ca1..d7bc287 100755
--- a/lib/sanitizer_common/scripts/gen_dynamic_list.py
+++ b/lib/sanitizer_common/scripts/gen_dynamic_list.py
@@ -100,7 +100,7 @@ def main(argv):
     print('global:')
   result.sort()
   for f in result:
-    print('  ' + f.encode('utf-8') + ';')
+    print(u'  %s;' % f)
   if args.version_list:
     print('local:')
     print('  *;')