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

Function strip_sections

tools/building.py:1033–1036  ·  view source on GitHub ↗

Strip specified sections from a wasm file.

(infile, outfile, sections)

Source from the content-addressed store, hash-verified

1031
1032@ToolchainProfiler.profile()
1033def strip_sections(infile, outfile, sections):
1034 """Strip specified sections from a wasm file."""
1035 cmd = [LLVM_OBJCOPY, infile, outfile] + ['--remove-section=' + section for section in sections]
1036 check_call(cmd)
1037
1038
1039# extract the DWARF info from the main file, and leave the wasm with

Callers 1

emit_debug_on_sideFunction · 0.85

Calls 1

check_callFunction · 0.85

Tested by

no test coverage detected