@@ -8,20 +8,26 @@ PROTOC_TOOLCHAIN_FLAGS = {
88        That flag ALSO decouples how each built-in language rule (Java, Python, C++, etc.) locates the runtime. 
99        """ ,
1010    ),
11-     "per_file_copt" : struct (
12-         default  =  "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
13-         description  =  "Make sure protobuf is not built from source" ,
14-     ),
15-     "host_per_file_copt" : struct (
16-         default  =  "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
17-         description  =  "Make sure protobuf is not built from source" ,
18-     ),
19-     "per_file_copt" : struct (
20-         default  =  "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
21-         description  =  "Make sure grpc is not built from source" ,
22-     ),
23-     "host_per_file_copt" : struct (
24-         default  =  "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
25-         description  =  "Make sure grpc is not built from source" ,
26-     ),
11+     "per_file_copt" : [
12+         struct (
13+             default  =  "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
14+             description  =  "Make sure protobuf is not built from source" ,
15+         ),
16+         struct (
17+             default  =  "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
18+             description  =  "Make sure grpc is not built from source" ,
19+             allow_repeated  =  True ,
20+         ),
21+     ],
22+     "host_per_file_copt" : [
23+         struct (
24+             default  =  "external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
25+             description  =  "Make sure protobuf is not built from source" ,
26+         ),
27+         struct (
28+             default  =  "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT" ,
29+             description  =  "Make sure grpc is not built from source" ,
30+             allow_repeated  =  True ,
31+         ),
32+     ],
2733}
0 commit comments