Skip to content

Conversation

@catamorphism
Copy link
Contributor

@catamorphism catamorphism commented Sep 12, 2025

Previously, a lot of subcommands listed the --generate-dwarf option in cases where no output file is produced, or where it doesn't make sense to add debug info. This change refactors the options to separate the option to generate DWARF from the generic input/output options.

The commands affected are: shrink, mutate, dump, objdump, strip, demangle, component wit, component targets, and metadata show. The --help messages for these commands no longer include --generate-dwarf.

@catamorphism catamorphism requested a review from a team as a code owner September 12, 2025 18:37
@catamorphism catamorphism requested review from fitzgen and removed request for a team September 12, 2025 18:37
@catamorphism catamorphism marked this pull request as draft September 12, 2025 18:42
…n't make sense

Previously, a lot of subcommands listed the --generate-dwarf option in cases
where no output file is produced, or where it doesn't make sense to add debug info.
This change refactors the options to separate the option to generate DWARF from
the generic input/output options.

The commands affected are: shrink, mutate, dump, objdump, strip,
demangle, `component wit`, `component targets`, and `metadata show`.
The --help messages for these commands no longer include --generate-dwarf.
@catamorphism
Copy link
Contributor Author

I initially thought validate and addr2line didn't need this flag, but after running the tests (which I didn't do at first, oops), I see why they do. If I've assumed wrongly about any of the other commands, let me know.

@fitzgen
Copy link
Member

fitzgen commented Sep 12, 2025

I see that this is a draft PR -- should I hold off on taking a look for a little while?

@catamorphism
Copy link
Contributor Author

@fitzgen Yes, I'll mark it as ready for review once CI is done. Thanks!

@catamorphism catamorphism marked this pull request as ready for review September 12, 2025 19:01
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Sep 15, 2025
Merged via the queue into bytecodealliance:main with commit 241cc1b Sep 15, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants