aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-18 12:02:19 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-18 12:02:19 -0800
commit9aa0797ea013ccd0a91c78c9e6c83d1f42cba3c3 (patch)
treefc2e658a944fedf2998a3c17deba823adecc954e
parent20ce1c2c6e47303ad259b53dee7d2da5e308f496 (diff)
fix emcc bug with detecting bitcode after refactoring of llvm-nm calling code
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index d8ccad90..f33e2cbd 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -671,7 +671,7 @@ class Building:
# if the file doesn't exist or doesn't have valid symbols, it isn't bitcode
try:
defs = Building.llvm_nm(filename, stderr=PIPE)
- assert len(defs.defs + defs.undefs) > 0
+ assert len(defs.defs) + len(defs.undefs) + len(defs.commons) > 0
except:
return False
# look for magic signature