aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-07 18:01:09 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-07 18:01:09 -0800
commit5c02f40d3422617d0be4f0542b8b5281cae7883b (patch)
tree0a486e9da09016e3c47981d88844f3ccbc65acab /emcc
parent16230c8cf1e947e03714da3fd3307a9eff41405a (diff)
automatic malloc need detection for new
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 36c2464a..c4575310 100755
--- a/emcc
+++ b/emcc
@@ -439,7 +439,7 @@ try:
has_dlmalloc = False
for input_file in input_files:
symbols = shared.Building.llvm_nm(in_temp(unsuffixed_basename(input_file) + '.o'))
- for malloc_def in ['malloc', 'free', 'calloc', 'memalign', 'realloc', 'valloc', 'pvalloc', 'mallinfo', 'mallopt', 'malloc_trim', 'malloc_stats', 'malloc_usable_size', 'malloc_footprint', 'malloc_max_footprint', 'independent_calloc', 'independent_comalloc']:
+ for malloc_def in ['malloc', 'free', 'calloc', 'memalign', 'realloc', 'valloc', 'pvalloc', 'mallinfo', 'mallopt', 'malloc_trim', 'malloc_stats', 'malloc_usable_size', 'malloc_footprint', 'malloc_max_footprint', 'independent_calloc', 'independent_comalloc', '_Znwj', '_Znaj', '_Znam', '_Znwm']:
if malloc_def in symbols.undefs:
need_dlmalloc = True
if malloc_def in symbols.defs: