bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
176 stars 88 forks source link

MSVC/Windows: Consider setting VSCMD_SKIP_SENDTELEMETRY=<some-random-value> to avoid slowdown during VsDevEnv.cmd setup #223

Open malkia opened 3 months ago

malkia commented 3 months ago

https://github.com/bazelbuild/rules_cc/blob/4a62c693309887664cb733245d1c74f17a992942/cc/private/toolchain/windows_cc_configure.bzl#L144

Also applies to built-in rules in bazel itself, but consider this:

image

Setting VSCMD_SKIP_SENDTELEMETRY=1 (or any value) would prevent trying to send it. Also avoid expensive call to powershell.exe