Strip specified sections from a wasm file.
(infile, outfile, sections)
| 1031 | |
| 1032 | @ToolchainProfiler.profile() |
| 1033 | def 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 |
no test coverage detected