Skip to content

Commit 77d7add

Browse files
committed
fix repeating global_funcs for fastcomp
1 parent 20e4867 commit 77d7add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emscripten.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def fix_item(item):
994994
pass
995995
# If no named globals, only need externals
996996
global_vars = []
997-
global_funcs = ['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2] + metadata['externs']
997+
global_funcs = list(set(['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2] + metadata['externs']))
998998
def math_fix(g):
999999
return g if not g.startswith('Math_') else g.split('_')[1]
10001000
asm_global_funcs = ''.join([' var ' + g.replace('.', '_') + '=global.' + g + ';\n' for g in maths]) + \

0 commit comments

Comments
 (0)