Use UCRT-based mingw-w64 GCC toolchain on Windows #2171
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Although it is not entirely clear why (e.g. a recent toolchain upgrade?), the mingw-w64 GCC compilation task on
windows-vsCurrentis timing out during the linking step. As far as I can tell, this seems to be due to a poor interaction between the lld linker and mingw-w64 GCC (?). Disabling use of the lld linker by setting-DMONGO_USE_LDD=OFFappears to resolve this issue. (Note: libmongocrypt is not compiled for mingw tasks.)As a drive-by improvement (this doesn't seem to affect the lld problem), a UCRT-based mingw-w64 GCC toolchain (winlibs) has now been deployed to
windows-vsCurrentandwindows-2022-latestfollowing DEVPROD-20813. This will allows us to finally deprecate and remove the ancient__USE_MINGW_ANSI_STDIOworkaround, among other C99 compatibility issues with msvcrt-based toolchains:... well, some C99 compatibility issues. 🥴