File tree 1 file changed +3
-1
lines changed
src/librustc_codegen_ssa/back
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1295,7 +1295,9 @@ fn crt_objects_fallback(sess: &Session, crate_type: CrateType) -> bool {
1295
1295
Some ( CrtObjectsFallback :: Musl ) => sess. crt_static ( Some ( crate_type) ) ,
1296
1296
// FIXME: Find some heuristic for "native mingw toolchain is available",
1297
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" ,
1298
+ Some ( CrtObjectsFallback :: Mingw ) => {
1299
+ sess. host == sess. target . target && sess. target . target . target_vendor != "uwp"
1300
+ }
1299
1301
// FIXME: Figure out cases in which WASM needs to link with a native toolchain.
1300
1302
Some ( CrtObjectsFallback :: Wasm ) => true ,
1301
1303
None => false ,
You can’t perform that action at this time.
0 commit comments