Skip to content

Commit 66f5f73

Browse files
committed
Merge remote-tracking branch 'origin/incoming' into getSetValue
2 parents 1682bfe + a6ae6e3 commit 66f5f73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emscripten.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ def include_asm_consts(pre, forwarded_json, metadata, settings):
657657
for s in range(len(all_sigs)):
658658
sig = all_sigs[s]
659659
call_type = call_types[s] if s < len(call_types) else ''
660+
if '_emscripten_asm_const_' + call_type + sig in forwarded_json['Functions']['libraryFunctions']: continue # Only one invoker needs to be emitted for each ASM_CONST (signature x call_type) item
660661
forwarded_json['Functions']['libraryFunctions']['_emscripten_asm_const_' + call_type + sig] = 1
661662
args = ['a%d' % i for i in range(len(sig)-1)]
662663
all_args = ['code'] + args

0 commit comments

Comments
 (0)