4
Fast static linker for emscripten outputs. Specifically this links asm.js modules.
6
See https://github.com/kripken/emscripten/wiki/Linking
10
from tools import shared
11
from tools.asm_module import AsmModule
14
me, main, side, out = sys.argv[:4]
16
print >> sys.stderr, 'usage: emlink.py [main module] [side module] [output name]'
19
print 'Main module:', main
20
print 'Side module:', side
23
shared.try_delete(out)
25
main = AsmModule(main)
26
side = AsmModule(side)
28
side.relocate_into(main)