Skip building non-test targets in Windows MSVC Bazel test runs.

In Abseil, many benchmarks are defined as cc_binary targets with tags = ["benchmark"], so --test_tag_filters=-benchmark does not prevent bazel test from compiling and linking them alongside @google_benchmark. Enabling --build_tests_only on windows-msvc (while keeping --nobuild_tests_only on windows-clangcl for Windows benchmark build coverage) avoids compiling ~85 benchmark binaries across the six slow MSVC matrix jobs.

PiperOrigin-RevId: 1005099652
diff --git a/.bazelrc b/.bazelrc
index 9ca58b2..96a3479 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -38,13 +38,16 @@
 build:linux --host_per_file_copt=external/.*@-w
 
 # Configure our Windows MSVC and ClangCL setup.
-common:windows-msvc --enable_runfiles
-build:windows-msvc --cxxopt=/std:c++17 --host_cxxopt=/std:c++17
-build:windows-msvc --copt=/WX
-build:windows-msvc --per_file_copt=external/.*@/w
-build:windows-msvc --host_per_file_copt=external/.*@/w
+common:windows-base --enable_runfiles
+build:windows-base --cxxopt=/std:c++17 --host_cxxopt=/std:c++17
+build:windows-base --copt=/WX
+build:windows-base --per_file_copt=external/.*@/w
+build:windows-base --host_per_file_copt=external/.*@/w
 
-build:windows-clangcl --config=windows-msvc
+common:windows-msvc --config=windows-base
+test:windows-msvc --build_tests_only
+
+common:windows-clangcl --config=windows-base
 build:windows-clangcl --compiler=clang-cl
 build:windows-clangcl --copt=-Wno-microsoft-cast
 build:windows-clangcl --extra_execution_platforms=//:x64_windows-clang-cl