You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I just started to learn Bazel recently but encountered an issue that Bazel fails detect local installation of VS2022 Preview.
I was able to workaround it by defining envvar BAZEL_VC=C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC, but I believe this should be property detected by find_vc_path.
By looking at code I found several places which might be contributing to this issue:
vswhere.exe is called without -prerelease option, which is required to detect Preview installations.
program_files_dir (C:\\Program Files (x86)) is used for searching installation paths. Since VS2022 is now 64-bit application, C:\\Program Files might be better option here.
Hello, I just started to learn Bazel recently but encountered an issue that Bazel fails detect local installation of VS2022 Preview.
I was able to workaround it by defining envvar
BAZEL_VC=C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC
, but I believe this should be property detected byfind_vc_path
.By looking at code I found several places which might be contributing to this issue:
vswhere.exe
is called without-prerelease
option, which is required to detect Preview installations.rules_cc/cc/private/toolchain/windows_cc_configure.bzl
Line 177 in 96d7d59
program_files_dir
(C:\\Program Files (x86)
) is used for searching installation paths. Since VS2022 is now 64-bit application,C:\\Program Files
might be better option here.rules_cc/cc/private/toolchain/windows_cc_configure.bzl
Line 248 in 96d7d59
Output
Environment
The text was updated successfully, but these errors were encountered: