We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rustc
1 parent bb548f9 commit 292cafeCopy full SHA for 292cafe
src/bootstrap/compile.rs
@@ -817,6 +817,13 @@ impl Step for Rustc {
817
if compiler.stage != 0 {
818
match builder.config.rust_lto {
819
RustcLto::Thin | RustcLto::Fat => {
820
+ if target == "x86_64-pc-windows-msvc" {
821
+ panic!(
822
+ "(Thin)LTO is currently known to produce miscompilations on `x86_64-pc-windows-msvc`. \
823
+See https://github.com/rust-lang/rust/issues/109067."
824
+ );
825
+ }
826
+
827
// Since using LTO for optimizing dylibs is currently experimental,
828
// we need to pass -Zdylib-lto.
829
cargo.rustflag("-Zdylib-lto");
0 commit comments