Skip to content

Commit 150633e

Browse files
authored
Rollup merge of #124233 - mati865:fix-support-for-upcoming-mingw-w64, r=petrochenkov
Add `-lmingwex` second time in `mingw_libs` Upcoming mingw-w64 releases will contain small math functions refactor which moved implementation around. As a result functions like `lgamma` now depend on libraries in this order: `libmingwex.a` -> `libmsvcrt.a` -> `libmingwex.a`. Fixes #124221
2 parents 6e1d947 + eac0b3a commit 150633e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_target/src/spec/base/windows_gnu.rs

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ pub fn opts() -> TargetOptions {
4040
//
4141
// See https://github.com/rust-lang/rust/pull/47483 for some more details.
4242
"-lmsvcrt",
43+
// Math functions missing in MSVCRT (they are present in UCRT) require
44+
// this dependency cycle: `libmingwex.a` -> `libmsvcrt.a` -> `libmingwex.a`.
45+
"-lmingwex",
4346
"-luser32",
4447
"-lkernel32",
4548
];

0 commit comments

Comments
 (0)