We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee1b62 commit 08990e5Copy full SHA for 08990e5
src/librustc_codegen_ssa/back/link.rs
@@ -1295,7 +1295,9 @@ fn crt_objects_fallback(sess: &Session, crate_type: CrateType) -> bool {
1295
Some(CrtObjectsFallback::Musl) => sess.crt_static(Some(crate_type)),
1296
// FIXME: Find some heuristic for "native mingw toolchain is available",
1297
// likely based on `get_crt_libs_path` (https://github.com/rust-lang/rust/pull/67429).
1298
- Some(CrtObjectsFallback::Mingw) => sess.target.target.target_vendor != "uwp",
+ Some(CrtObjectsFallback::Mingw) => {
1299
+ sess.host == sess.target.target && sess.target.target.target_vendor != "uwp"
1300
+ }
1301
// FIXME: Figure out cases in which WASM needs to link with a native toolchain.
1302
Some(CrtObjectsFallback::Wasm) => true,
1303
None => false,
0 commit comments