aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-27 16:24:12 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-27 16:24:48 -0800
commit78048c3f571a51de7bea51690f5b176b824b62f5 (patch)
tree2c111cec6ee44e3031570720ce2fa744c37eaa22 /emscripten.py
parentacb425c435975eb24b822aec8ff1074ce55b6800 (diff)
add fastcomp externs to asm imports
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index ac66ed8d..73b38e0c 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -1002,7 +1002,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]
+ global_funcs = ['_' + 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]) + \