aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-24 14:07:29 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-24 14:07:29 -0800
commit823c8534b9712810bae2bd9bbe1c7f89cd062cc2 (patch)
tree83d7370c6187963fbfaf9cc7ecba61aa324005b9 /emscripten.py
parentaf99c279356f4703562633214142e4cccd558a2e (diff)
optimize memset
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py
index 68fb4aee..8671afb6 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -232,8 +232,8 @@ def emscript(infile, settings, outfile, libraries=[]):
# merge forwarded data
if settings.get('ASM_JS'):
all_exported_functions = set(settings['EXPORTED_FUNCTIONS']) # both asm.js and otherwise
- for additional_export in ['_malloc', '_free']: # additional functions to export from asm, if they are implemented
- all_exported_functions.add(additional_export)
+ for additional_export in settings['DEFAULT_LIBRARY_FUNCS_TO_INCLUDE']: # additional functions to export from asm, if they are implemented
+ all_exported_functions.add('_' + additional_export)
exported_implemented_functions = set()
for func_js, curr_forwarded_data in outputs:
curr_forwarded_json = json.loads(curr_forwarded_data)