microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.45k stars 1.53k forks source link

[msys2/mingw64] recommend using ucrt64 instead of mingw64 #11063

Open 1480c1 opened 1 year ago

1480c1 commented 1 year ago

Hi,

msys2 has recently moved towards recommending using the ucrt64/clang64 environment over the mingw64 environment and instead now recommends installing mingw-w64-ucrt-x86_64-toolchain rather than mingw-w64-x86_64-toolchain as mentioned in Using GCC with MinGW. Doing so would also require updating the path mentioned from C:\msys64\mingw64\bin to C:\msys64\ucrt64\bin.

The only limitations would be that ucrt is not installed by default on Windows 7 and msys2 does not currently provide an ucrt32 environment. However, since vscode's requirements page shows Windows 8.0, 8.1 and 10, 11 (32-bit and 64-bit), I would assume the first limitation does not apply, and the second matters less on the basis that 32-bit is only mentioned in a small section leading to msys2's page.

gregvanl commented 1 year ago

Here's a communty to update the path. https://github.com/microsoft/vscode-docs/pull/6276

Also related is a version bump on the existing path https://github.com/microsoft/vscode-docs/pull/6387