File tree 3 files changed +16
-2
lines changed
src/libstd/sys/common/unwind
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,7 @@ opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
578
578
opt local-rust 0 " use an installed rustc rather than downloading a snapshot"
579
579
opt llvm-static-stdcpp 0 " statically link to libstdc++ for LLVM"
580
580
opt rpath 0 " build rpaths into rustc itself"
581
+ opt stage0-landing-pads 1 " enable landing pads during bootstrap with stage0"
581
582
# This is used by the automation to produce single-target nightlies
582
583
opt dist-host-only 0 " only install bins for the host architecture"
583
584
opt inject-std-version 1 " inject the current compiler version of libstd into programs"
Original file line number Diff line number Diff line change @@ -170,7 +170,10 @@ RUST_LIB_FLAGS_ST3 += -C prefer-dynamic
170
170
171
171
# Landing pads require a lot of codegen. We can get through bootstrapping faster
172
172
# by not emitting them.
173
- RUSTFLAGS_STAGE0 += -Z no-landing-pads
173
+
174
+ ifdef CFG_DISABLE_STAGE0_LANDING_PADS
175
+ RUSTFLAGS_STAGE0 += -Z no-landing-pads
176
+ endif
174
177
175
178
# Enable MIR to "always build" for crates where this works. This is
176
179
# just temporary while MIR is being actively built up -- it's just a
Original file line number Diff line number Diff line change @@ -81,8 +81,18 @@ use sys_common::mutex::Mutex;
81
81
#[ path = "seh.rs" ] #[ doc( hidden) ]
82
82
pub mod imp;
83
83
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
+
84
94
// x86_64-pc-windows-*
85
- #[ cfg( all( windows, target_arch = "x86_64" ) ) ]
95
+ #[ cfg( all( not ( stage0 ) , windows, target_arch = "x86_64" ) ) ]
86
96
#[ path = "seh64_gnu.rs" ] #[ doc( hidden) ]
87
97
pub mod imp;
88
98
You can’t perform that action at this time.
0 commit comments