diff --git a/src/libpanic_unwind/lib.rs b/src/libpanic_unwind/lib.rs index d97a7a8a87d8d..5f345c2133f6b 100644 --- a/src/libpanic_unwind/lib.rs +++ b/src/libpanic_unwind/lib.rs @@ -39,6 +39,11 @@ cfg_if::cfg_if! { if #[cfg(miri)] { #[path = "miri.rs"] mod imp; + // On MSVC we need the SEH lang items as well... + // This should match the conditions of the `seh.rs` import below. + #[cfg(all(target_env = "msvc", not(target_arch = "aarch64")))] + #[allow(unused)] + mod seh; } else if #[cfg(target_os = "emscripten")] { #[path = "emcc.rs"] mod imp;