Преглед на файлове

Build protoc for host platform to enable cross-compilation.

This is necessary to run protoc on the host as a dependency for Android BUILD targets with Bazel.
Andrew Harp преди 10 години
родител
ревизия
38f131fd8c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      protobuf.bzl

+ 1 - 0
protobuf.bzl

@@ -81,6 +81,7 @@ _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,
             executable = True,
             executable = True,
             single_file = True,
             single_file = True,
             mandatory = True,
             mandatory = True,