Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI flag -Cnative-unwind-info #9494

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions crates/cli-flags/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ wasmtime_option_group! {
pub parallel_compilation: Option<bool>,
/// Whether to enable proof-carrying code (PCC)-based validation.
pub pcc: Option<bool>,
/// Controls whether native unwind information is present in compiled
/// object files.
pub native_unwind_info: Option<bool>,

#[prefixed = "cranelift"]
/// Set a cranelift-specific option. Use `wasmtime settings` to see
Expand Down Expand Up @@ -652,6 +655,9 @@ impl CommonOptions {
if let Some(enable) = self.opts.signals_based_traps {
config.signals_based_traps(enable);
}
if let Some(enable) = self.codegen.native_unwind_info {
config.native_unwind_info(enable);
}

match_feature! {
["pooling-allocator" : self.opts.pooling_allocator.or(pooling_allocator_default)]
Expand Down