Update flags.bzl
fixes #85
diff --git a/protoc/flags.bzl b/protoc/flags.bzl
index 88bc01c..68bf943 100644
--- a/protoc/flags.bzl
+++ b/protoc/flags.bzl
@@ -8,20 +8,25 @@
That flag ALSO decouples how each built-in language rule (Java, Python, C++, etc.) locates the runtime.
""",
),
- "per_file_copt": struct(
- default = "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT",
- description = "Make sure protobuf is not built from source",
- ),
- "host_per_file_copt": struct(
- default = "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT",
- description = "Make sure protobuf is not built from source",
- ),
- "per_file_copt": struct(
- default = "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT",
- description = "Make sure grpc is not built from source",
- ),
- "host_per_file_copt": struct(
- default = "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT",
- description = "Make sure grpc is not built from source",
- ),
+ "per_file_copt": [
+ struct(
+ default = "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT",
+ description = "Make sure protobuf is not built from source",
+ ),
+
+ "per_file_copt": struct(
+ default = "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT",
+ description = "Make sure grpc is not built from source",
+ ),
+ ],
+ "host_per_file_copt": [
+ struct(
+ default = "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT",
+ description = "Make sure protobuf is not built from source",
+ ),
+ "host_per_file_copt": struct(
+ default = "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT",
+ description = "Make sure grpc is not built from source",
+ ),
+ ],
}