From 38f131fd8c294afea9c374ae5afcb8c8d1c9bf23 Mon Sep 17 00:00:00 2001 From: Andrew Harp Date: Tue, 3 Nov 2015 16:39:32 -0500 Subject: [PATCH] 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. --- protobuf.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/protobuf.bzl b/protobuf.bzl index 9ed7c54ac7..86c6f251e6 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,