gecko-dev/build/build-clang/bug47258-extract-symbols-mbcs.patch
David Major 3e160f998a Bug 1661129 - Add toolchain tasks for clang 11.0.0 rc2 (not yet used) r=nalexander
This adds toolchain definitions for clang 11.0.0 rc2, so that developers can get a sneak peek, but nothing in automation uses these tasks yet. We'll make the switch in a later patch.

NB: most of `clang.yml` is rote copy-paste, except for `macosx64-clang-11` which makes a deliberate departure, described in a comment.

Differential Revision: https://phabricator.services.mozilla.com/D88189
2020-08-25 22:22:12 +00:00

14 lines
661 B
Diff

diff --git a/llvm/utils/extract_symbols.py b/llvm/utils/extract_symbols.py
index 43f603963a2..01fe10d36f0 100755
--- a/llvm/utils/extract_symbols.py
+++ b/llvm/utils/extract_symbols.py
@@ -32,7 +32,7 @@ import argparse
def dumpbin_get_symbols(lib):
process = subprocess.Popen(['dumpbin','/symbols',lib], bufsize=1,
stdout=subprocess.PIPE, stdin=subprocess.PIPE,
- universal_newlines=True)
+ universal_newlines=True, encoding='mbcs')
process.stdin.close()
for line in process.stdout:
# Look for external symbols that are defined in some section