Skip to content

Commit a7f2a78

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

File tree

1 file changed

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

1 file changed

+11
-1
lines changed

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

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

84+
// SNAP: i686-pc-windows-gnu
85+
#[cfg(all(stage0, windows, target_arch = "x86_64", target_env = "gnu"))]
86+
#[path = "seh64_gnu.rs"] #[doc(hidden)]
87+
pub mod imp;
88+
89+
// SNAP: x86_64-pc-windows-msvc
90+
#[cfg(all(stage0, windows, target_arch = "x86_64", target_env = "msvc"))]
91+
#[path = "seh.rs"] #[doc(hidden)]
92+
pub mod imp;
93+
8494
// x86_64-pc-windows-*
85-
#[cfg(all(windows, target_arch = "x86_64"))]
95+
#[cfg(all(not(stage0), windows, target_arch = "x86_64"))]
8696
#[path = "seh64_gnu.rs"] #[doc(hidden)]
8797
pub mod imp;
8898

0 commit comments

Comments
 (0)