Our great sponsors
-
> I am not making this up: https://github.com/Microsoft/vswhere
Such a seemingly simple problem and yet we have a very complicated solution. Just goes to show how convoluted things can get at Microsoft scale.
-
I solved this problem in 2017 when they changed things around a bit.
CMD /c vcvarsall.bat x64 && set
Then dump the VC specific environment variables in a file and you are good.
I implemented this in tundra a very nice and fast build system. It's in Lua... you can look at it here https://github.com/deplinenoise/tundra/blob/master/scripts/t...
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
zig
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Here's the equivalent code in Zig, in case you want a still-maintained, up-to-date file. It's just called "windows_sdk.cpp".
https://github.com/ziglang/zig/blob/master/src/windows_sdk.c...