aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2024-05-09 22:22:41 -0700
committerRyan Liptak <squeek502@hotmail.com>2024-05-09 22:22:41 -0700
commitcf8f0cdae9f6ca844c60adad6ac45d203d8baf38 (patch)
treefe673fbb989e3948e0e8501210d6ddc1bedde6b2 /src/codegen/llvm.zig
parente69caaa39f06b7ddf00c1e439c3df91f4efbdef3 (diff)
downloadzig-cf8f0cdae9f6ca844c60adad6ac45d203d8baf38.tar.gz
zig-cf8f0cdae9f6ca844c60adad6ac45d203d8baf38.zip
WindowsSdk: Fix finding the _Instances directory when it's not in the default location
Information about installed MSVC instances are stored in `state.json` files within a `Packages/_Instances` directory. The default location for this is `%PROGRAMDATA%\Microsoft\VisualStudio\Packages\_Instances`. However, it is possible for the Packages directory to be put somewhere else. In that case, the registry value `HKLM\SOFTWARE\Microsoft\VisualStudio\Setup\CachePath` is set and contains the path to the Packages directory. Previously, WindowsSdk did not check that registry value. After this commit, the registry value `HKLM\SOFTWARE\Microsoft\VisualStudio\Setup\CachePath` is checked first, which matches what ISetupEnumInstances does (according to a Procmon log).
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions