diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-29 13:42:32 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-29 13:42:32 -0800 |
commit | 77d7add6a09e5e9a3dc435b500410c700e97f721 (patch) | |
tree | fec4bc6808f61443d2375cf2a04e1d250f8ec378 /emscripten.py | |
parent | 20e48678c8ac6e3962896aa87f6645cb1ec58922 (diff) |
fix repeating global_funcs for fastcomp
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index b9abaca1..35acfd78 100755 --- a/emscripten.py +++ b/emscripten.py @@ -994,7 +994,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, pass # If no named globals, only need externals global_vars = [] - global_funcs = ['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2] + metadata['externs'] + global_funcs = list(set(['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2] + metadata['externs'])) def math_fix(g): return g if not g.startswith('Math_') else g.split('_')[1] asm_global_funcs = ''.join([' var ' + g.replace('.', '_') + '=global.' + g + ';\n' for g in maths]) + \ |