Skip to content

Commit c3b322f

Browse files
authored
Teach wasm-tools strip to not take out any component-type sections (#1309)
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
1 parent 76f67e5 commit c3b322f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/wasm-tools/strip.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ impl Opts {
4646
return to_delete.is_match(name);
4747
}
4848

49-
// Finally default strip everything but the `name` section.
50-
name != "name"
49+
// Finally default strip everything but the `name` and any `component-type` sections.
50+
name != "name" && !name.starts_with("component-type:")
5151
};
5252

5353
let mut output = Vec::new();

0 commit comments

Comments
 (0)