diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-29 18:19:00 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:20 -0800 |
commit | e0784233158154f8850a324375fe83eda8373dd9 (patch) | |
tree | 2934311355c885bb34a20ee59ec35cdc5b347b45 /emscripten.py | |
parent | 260bdcc25df67a9a32d08ff7b8a400f38933579a (diff) |
do not pass globals into asm when they are unnamed
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 659de9f4..99e60a50 100755 --- a/emscripten.py +++ b/emscripten.py @@ -302,7 +302,7 @@ def emscript(infile, settings, outfile, libraries=[]): del forwarded_json['Variables']['globals']['_llvm_global_ctors'] # not a true variable except: pass - global_vars = forwarded_json['Variables']['globals'].keys() + global_vars = forwarded_json['Variables']['globals'].keys() if settings['NAMED_GLOBALS'] else [] global_funcs = ['_' + x for x in forwarded_json['Functions']['libraryFunctions'].keys()] asm_globals = ''.join([' var ' + g + '=env.' + g + ';\n' for g in basics + global_funcs + global_vars]) # sent data |