Skip to content

Commit eac0b3a

Browse files
committed
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 rust-lang#124221
1 parent aa31bad commit eac0b3a

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)