Skip to content

Commit 90cdfa8

Browse files
committed
[emscripten] Cope with older llvm-nm output format.
The version of the Emscripten SDK used on the build servers has a slightly different output format for `llvm-nm -B`.
1 parent b8d9317 commit 90cdfa8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

util/emscripten-genwhitelist.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def iter_archive_symbols(archive):
8787
if verbose:
8888
print(' '.join(command))
8989
output = subprocess.check_output(command)
90-
current_object = []
9190
for line in output.splitlines():
9291
line = line.strip()
9392

@@ -107,7 +106,7 @@ def iter_archive_symbols(archive):
107106
# object, should be emterpreted. Put an "_" before each symbol
108107
# to get the name as generated by emscripten
109108
if line[-2].lower() == 't':
110-
yield ('_' + line[2])
109+
yield ('_' + line[-1])
111110
continue
112111

113112
# Check for undefined C++ symbols

0 commit comments

Comments
 (0)