Revision 1f07e38ce18c37d4bfa80ea34e49ae16a4da66c9 authored by juj on 24 July 2014, 08:14:18 UTC, committed by juj on 24 July 2014, 08:14:18 UTC
fix indent
emlink.py
#!/usr/bin/env python2
'''
Fast static linker for emscripten outputs. Specifically this links asm.js modules.
See https://github.com/kripken/emscripten/wiki/Linking
'''
import sys
from tools import shared
from tools.asm_module import AsmModule
def run():
try:
me, main, side, out = sys.argv[:4]
except:
print >> sys.stderr, 'usage: emlink.py [main module] [side module] [output name]'
sys.exit(1)
print 'Main module:', main
print 'Side module:', side
print 'Output:', out
shared.try_delete(out)
main = AsmModule(main)
side = AsmModule(side)
side.relocate_into(main)
main.write(out)
if __name__ == '__main__':
run()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...