diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 21:56:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 21:56:19 -0800 |
commit | 94e1d887ffebcbf640fbca19c76331f6dffbff23 (patch) | |
tree | de41b80bce15c6a92fe40cdd5724e33f27a89ce1 /emscripten.py | |
parent | 86889d526ac498d8b612af20e47f59de32d2cd99 (diff) |
do not import functions implemented by 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 28ef16da..7514b3ca 100755 --- a/emscripten.py +++ b/emscripten.py @@ -1027,7 +1027,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, pass # If no named globals, only need externals global_vars = metadata['externs'] #+ forwarded_json['Variables']['globals'] - global_funcs = list(set(['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2]).difference(set(global_vars))) # + metadata['externFuncs']/'declares' + global_funcs = list(set(['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2]).difference(set(global_vars)).difference(set(metadata['implementedFunctions']))) 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]) + \ |