Added configuration for wrapper scripts of msvc toolchain Now we only need to specify --cpu=x64_windows_msvc when using msvc toolchain -- Change-Id: Id501dd9ef2fd6553285677605ec75e80499b9ef7 Reviewed-on: https://bazel-review.googlesource.com/#/c/3441 MOS_MIGRATED_REVID=120260588
diff --git a/tools/cpp/BUILD.static b/tools/cpp/BUILD.static index 8181a61..6f5f585 100644 --- a/tools/cpp/BUILD.static +++ b/tools/cpp/BUILD.static
@@ -31,6 +31,7 @@ ":cc-compiler-armeabi-v7a", ":cc-compiler-freebsd", ":cc-compiler-x64_windows", + ":cc-compiler-x64_windows_msvc", ":empty", ], ) @@ -76,3 +77,31 @@ strip_files = ":empty", supports_param_files = 1, ) + +cc_toolchain( + name = "cc-compiler-x64_windows_msvc", + all_files = ":every-file-x64_windows", + compiler_files = ":compile-x64_windows", + cpu = "x64_windows", + dwp_files = ":empty", + dynamic_runtime_libs = [":empty"], + linker_files = ":empty", + objcopy_files = ":empty", + static_runtime_libs = [":empty"], + strip_files = ":empty", +) + +filegroup( + name = "every-file-x64_windows", + srcs = [ + ":compile-x64_windows", + ], +) + +filegroup( + name = "compile-x64_windows", + srcs = glob([ + "wrapper/bin/msvc_*", + "wrapper/bin/pydir/msvc*", + ]), +) \ No newline at end of file