Skip to content

Commit b6d93d9

Browse files
committed
libpanic_unwind for Miri: make sure we have the SEH lang items when needed
1 parent 9e8c4e6 commit b6d93d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libpanic_unwind/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ cfg_if::cfg_if! {
3939
if #[cfg(miri)] {
4040
#[path = "miri.rs"]
4141
mod imp;
42+
// On MSVC we need the SEH lang items as well...
43+
#[cfg(all(target_env = "msvc", not(target_arch = "aarch64")))]
44+
#[allow(unused)]
45+
mod seh;
4246
} else if #[cfg(target_os = "emscripten")] {
4347
#[path = "emcc.rs"]
4448
mod imp;

0 commit comments

Comments
 (0)