Skip to content

Commit

Permalink
Unrolled build for rust-lang#124233
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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 rust-lang#124221
  • Loading branch information
rust-timer authored May 11, 2024
2 parents 19dacee + eac0b3a commit c277b80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/rustc_target/src/spec/base/windows_gnu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
];
Expand Down

0 comments on commit c277b80

Please sign in to comment.