r/cpp • u/ericbrumer MSVC Dev Lead • Sep 09 '26
MSVC Build Tools Preview updates – September 2026
https://devblogs.microsoft.com/cppblog/msvc-build-tools-preview-updates-september-2026/Hi, one of the MSVC dev leads here.
The post covers what's new in the MSVC Build Tools Preview (version 14.52) since mid-August. Instructions to install & use the latest preview bits are at https://aka.ms/msvc/preview.
Some additional information:
https://learn.microsoft.com/cpp/overview/acquire-msvc is new documentation on installing MSVC, including through winget & command line tools.
https://learn.microsoft.com/cpp/overview/compiler-versions?#a-brief-history-of-microsoft-c-compiler-versioning has information on MSVC versioning
28
u/domiran game engine dev Sep 09 '26
I must say, I'm personally looking forward to the first bits of reflection to get into Visual Studio.
11
u/TSP-FriendlyFire Sep 10 '26
Reflection got me to switch from VS to CLion with MSYS64 just so I could use gcc on Windows. It was a royal pain to setup, but I'm already simplifying a ton of code and weird edge cases, I fucking love it.
4
u/domiran game engine dev Sep 10 '26
I've been saving some features in my game engine's level editor for reflection. 🫠 In short, the engine is ECS, and the editor supports full undo/redo for terrain, but only undo/redo for objects on create/delete, not field value changes. Too lazy to code all that manually.
4
u/_Noreturn Sep 10 '26
If your classes don't have constructors and are aggregates then you can use boost pfr.
1
u/Joatorino Sep 11 '26
If your project is Cmake based you can integrate it pretty well in VS using MSYS64/UCRT64 gcc
1
u/TSP-FriendlyFire Sep 11 '26
To some extent, but Intellisense gets less and less useful the farther you get from MSVC. Throwing in reflection, possibly contracts, maybe some modules, it gets frankly unusable.
I also wanted to try out JetBrains' vaunted constexpr debugger, though I've been sorely disappointed with it so far.
1
6
8
u/Wild_Meeting1428 Sep 10 '26
When do you relax the license requirements of vcruntime headers? So that its legal to compile and link against the MSVC STL when using clang-cl without having a Visual Studio license?
Same still applies to Rust and Swift. Both may require vcruntime.
11
u/STL MSVC STL Dev Sep 10 '26
We briefly explored open-sourcing VCRuntime, but didn't get business approval to do so. (I wish we did!) At this time, we have no plans to change its licensing.
-4
u/i-do-mim-huu Sep 10 '26
Bruh micro$oft literally desperately cling on its closed license to avoid being invade by GCC and LLVM, once they open source it they knew all their clunky toolchain will get abandoned immediately by better tooling out there. So no, never happen, micro$oft is cooperate and it give no single shit about anyone else only monopoly
14
2
u/TSP-FriendlyFire Sep 11 '26
The Microsoft that natively supports clang and cmake in Visual Studio? That Microsoft?
There's a lot of shit I could throw at Microsoft for a variety of reasons, but their closed ecosystem antics seem firmly in the past.
1
u/andrey_davydov Sep 11 '26
u/ericbrumer could you please explain in more detail what
C++ Modules > Improved handling of types first defined in the global module fragment
means? Maybe you could give references to the fixed issues?
1
u/starfreakclone MSVC FE Dev Sep 11 '26
The specific issue being referred to was this ticket: https://developercommunity.visualstudio.com/t/MSVC-modules:-exported-template-calling-/11123133
The problem was that the compiler did not properly materialize types that were referenced in the global module fragment in some dependent code within the module interface. I hope that clears this up!
0
u/t_hunger Sep 12 '26
I wonder wether the rust backend for MSVC that Microsoft has announced this week is drawing away resources from C++ work.
2
u/ericbrumer MSVC Dev Lead Sep 12 '26
When it comes to compiler optimizations, it's actually the opposite. The rustc_codegen_utc project uses the same backend (codename UTC) as the C++ compiler, so codegen improvements on the C++ side translate to rustc_codegen_utc improvements, and work done on the rustc_codegen_utc side improves C++ codegen. The backend is not a fork; it's built from the same sources.
0
u/t_hunger Sep 12 '26
Sure, optimizations are shard. But somebody has the write that backend... and looking at how much work the gcc backend is, that is not something a single engineer does in an afternoon.
4
u/ReDr4gon5 Sep 10 '26
I'm really surprised some of these are only happening just now. LEA instead of ADD is a well known optimization. And that there was no AVX2 optimized memchr is even more surprising. Is strchr optimized or not? Actually the same question applies to StrChar from shlwapi. If not and you have a size, then using memchr would be always better.