MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / do_split_module

Function do_split_module

tools/link.py:476–482  ·  view source on GitHub ↗
(wasm_file, options)

Source from the content-addressed store, hash-verified

474
475
476def do_split_module(wasm_file, options):
477 os.replace(wasm_file, wasm_file + '.orig')
478 args = ['--instrument']
479 if options.requested_debug:
480 # Tell wasm-split to preserve function names.
481 args += ['-g']
482 building.run_binaryen_command('wasm-split', wasm_file + '.orig', outfile=wasm_file, args=args)
483
484
485def get_worker_js_suffix():

Callers 1

phase_final_emittingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected