Skip to content

Commit 8cf5cf0

Browse files
committed
Fix MSVC stage0 with landing pads enabled
1 parent cefadf0 commit 8cf5cf0

File tree

1 file changed

+6
-1
lines changed
  • src/libstd/sys/common/unwind

1 file changed

+6
-1
lines changed

src/libstd/sys/common/unwind/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,13 @@ use sys_common::mutex::Mutex;
8181
#[path = "seh.rs"] #[doc(hidden)]
8282
pub mod imp;
8383

84+
// SNAP: remove this and remove not(stage0) from the next block
85+
#[cfg(all(stage0, windows, target_arch = "x86_64"))]
86+
#[path = "seh.rs"] #[doc(hidden)]
87+
pub mod imp;
88+
8489
// x86_64-pc-windows-*
85-
#[cfg(all(windows, target_arch = "x86_64"))]
90+
#[cfg(all(not(stage0), windows, target_arch = "x86_64"))]
8691
#[path = "seh64_gnu.rs"] #[doc(hidden)]
8792
pub mod imp;
8893

0 commit comments

Comments
 (0)