Skip to content

Commit 16d5225

Browse files
authored
Merge pull request #2963 from kate-goldenring/disable-unwind-on-musl
Fix: disable unwinding for musl builds
2 parents 3c36953 + 5bbdefe commit 16d5225

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/core/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ impl Default for Config {
7777
inner.async_support(true);
7878
inner.epoch_interruption(true);
7979
inner.wasm_component_model(true);
80+
// If targeting musl, disable native unwind to address this issue:
81+
// https://github.com/fermyon/spin/issues/2889
82+
// TODO: remove this when wasmtime is updated to >= v27.0.0
83+
#[cfg(all(target_os = "linux", target_env = "musl"))]
84+
inner.native_unwind_info(false);
8085

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

0 commit comments

Comments
 (0)