aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-18 09:53:48 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-18 09:53:48 -0800
commit67040a3b6e211f195fccefa06610dd730c21b42e (patch)
tree9c3c27b6f51ffd53f6f48b599624066c9c86c453 /emcc
parent2a9a546698a027605ea1f487d6d2b942ad347b9b (diff)
refactor library def scanning code
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc6
1 files changed, 3 insertions, 3 deletions
diff --git a/emcc b/emcc
index 9043fe46..1e7279f8 100755
--- a/emcc
+++ b/emcc
@@ -483,10 +483,10 @@ try:
has = False
for input_file in input_files:
symbols = shared.Building.llvm_nm(in_temp(unsuffixed_basename(input_file) + '.o'))
- for malloc_def in library_symbols:
- if malloc_def in symbols.undefs:
+ for library_symbol in library_symbols:
+ if library_symbol in symbols.undefs:
need = True
- if malloc_def in symbols.defs:
+ if library_symbol in symbols.defs:
has = True
if need and not has:
# We need to build and link the library in