aboutsummaryrefslogtreecommitdiff
path: root/protobuf.bzl
diff options
context:
space:
mode:
authorAndrew Harp <andrew.harp@gmail.com>2015-11-03 16:39:32 -0500
committerAndrew Harp <andrew.harp@gmail.com>2015-11-03 16:39:32 -0500
commit38f131fd8c294afea9c374ae5afcb8c8d1c9bf23 (patch)
tree3c9883e47c8589a76579e0424e31e7f90e0ca886 /protobuf.bzl
parentaa3675415ec8da317793a3e151e44daaebc21ff8 (diff)
downloadprotobuf-38f131fd8c294afea9c374ae5afcb8c8d1c9bf23.tar.gz
protobuf-38f131fd8c294afea9c374ae5afcb8c8d1c9bf23.tar.bz2
protobuf-38f131fd8c294afea9c374ae5afcb8c8d1c9bf23.zip
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.
Diffstat (limited to 'protobuf.bzl')
-rw-r--r--protobuf.bzl1
1 files changed, 1 insertions, 0 deletions
diff --git a/protobuf.bzl b/protobuf.bzl
index 9ed7c54a..86c6f251 100644
--- a/protobuf.bzl
+++ b/protobuf.bzl
@@ -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,