Эх сурвалжийг харах

Compatibility with the new version of Bazel.

Global variable HOST_CFG is deprecated and will not be supported soon.
Vladimir Moskva 9 жил өмнө
parent
commit
a86e6d8db2
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      protobuf.bzl

+ 2 - 2
protobuf.bzl

@@ -88,13 +88,13 @@ _proto_gen = rule(
         "deps": attr.label_list(providers = ["proto"]),
         "deps": attr.label_list(providers = ["proto"]),
         "includes": attr.string_list(),
         "includes": attr.string_list(),
         "protoc": attr.label(
         "protoc": attr.label(
-            cfg = HOST_CFG,
+            cfg = "host",
             executable = True,
             executable = True,
             single_file = True,
             single_file = True,
             mandatory = True,
             mandatory = True,
         ),
         ),
         "grpc_cpp_plugin": attr.label(
         "grpc_cpp_plugin": attr.label(
-            cfg = HOST_CFG,
+            cfg = "host",
             executable = True,
             executable = True,
             single_file = True,
             single_file = True,
         ),
         ),