mirror of
https://github.com/mii443/mozc.git
synced 2025-08-22 16:15:46 +00:00
Fix rules_cc_BUILD.windows.tpl.patch
(#1196)
This follows up to my previous commit [1], which introduced several patches to 'rules_cc' including bazel/rules_cc_BUILD.windows.tpl.patch to support 'clang-cl' (#1179). Seems that a subsequent commit [2] unexpectedly replacing '@platforms//' with '//third_party/bazel_platforms' probably because of some issue in copybara rewrite rules. This commit restores the above file to the original state to fix Windows Bazel build. [1]:76343ffa70
[2]:c523a3b998
[3]: https://github.com/google/copybara PiperOrigin-RevId: 730872628
This commit is contained in:
@ -69,13 +69,13 @@
|
|||||||
+toolchain(
|
+toolchain(
|
||||||
+ name = "cc-toolchain-x64_x86_windows-clang-cl",
|
+ name = "cc-toolchain-x64_x86_windows-clang-cl",
|
||||||
+ exec_compatible_with = [
|
+ exec_compatible_with = [
|
||||||
+ "//third_party/bazel_platforms/cpu:x86_64",
|
+ "@platforms//cpu:x86_64",
|
||||||
+ "//third_party/bazel_platforms/os:windows",
|
+ "@platforms//os:windows",
|
||||||
+ "@rules_cc//cc/private/toolchain:clang-cl",
|
+ "@rules_cc//cc/private/toolchain:clang-cl",
|
||||||
+ ],
|
+ ],
|
||||||
+ target_compatible_with = [
|
+ target_compatible_with = [
|
||||||
+ "//third_party/bazel_platforms/cpu:x86_32",
|
+ "@platforms//cpu:x86_32",
|
||||||
+ "//third_party/bazel_platforms/os:windows",
|
+ "@platforms//os:windows",
|
||||||
+ ],
|
+ ],
|
||||||
+ toolchain = ":cc-compiler-x64_x86_windows-clang-cl",
|
+ toolchain = ":cc-compiler-x64_x86_windows-clang-cl",
|
||||||
+ toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
+ toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||||
|
Reference in New Issue
Block a user