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
This commit is contained in:
commit
150633eea2
@ -40,6 +40,9 @@ pub fn opts() -> TargetOptions {
|
||||
//
|
||||
// See https://github.com/rust-lang/rust/pull/47483 for some more details.
|
||||
"-lmsvcrt",
|
||||
// Math functions missing in MSVCRT (they are present in UCRT) require
|
||||
// this dependency cycle: `libmingwex.a` -> `libmsvcrt.a` -> `libmingwex.a`.
|
||||
"-lmingwex",
|
||||
"-luser32",
|
||||
"-lkernel32",
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user