Skip to content

Commit

Permalink
Build protoc for host platform to enable cross-compilation.
Browse files Browse the repository at this point in the history
This is necessary to run protoc on the host as a dependency for Android BUILD targets with Bazel.
  • Loading branch information
andrewharp committed Nov 3, 2015
1 parent aa36754 commit 38f131f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protobuf.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ _proto_gen = rule(
"deps": attr.label_list(providers = ["proto"]),
"includes": attr.string_list(),
"protoc": attr.label(
cfg = HOST_CFG,
executable = True,
single_file = True,
mandatory = True,
Expand Down

0 comments on commit 38f131f

Please sign in to comment.