Skip to content

Commit

Permalink
Merge pull request #2963 from kate-goldenring/disable-unwind-on-musl
Browse files Browse the repository at this point in the history
Fix: disable unwinding for musl builds
  • Loading branch information
itowlson authored Dec 17, 2024
2 parents 3c36953 + 5bbdefe commit 16d5225
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ impl Default for Config {
inner.async_support(true);
inner.epoch_interruption(true);
inner.wasm_component_model(true);
// If targeting musl, disable native unwind to address this issue:
// https://github.com/fermyon/spin/issues/2889
// TODO: remove this when wasmtime is updated to >= v27.0.0
#[cfg(all(target_os = "linux", target_env = "musl"))]
inner.native_unwind_info(false);

if use_pooling_allocator_by_default() {
// By default enable the pooling instance allocator in Wasmtime. This
Expand Down

0 comments on commit 16d5225

Please sign in to comment.