Skip to content

Commit 125e714

Browse files
authored
Update flags.bzl
fixes #85
1 parent 1ebcb23 commit 125e714

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

protoc/flags.bzl

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,25 @@ 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+
17+
"per_file_copt": struct(
18+
default = "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT",
19+
description = "Make sure grpc is not built from source",
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+
"host_per_file_copt": struct(
28+
default = "external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT",
29+
description = "Make sure grpc is not built from source",
30+
),
31+
],
2732
}

0 commit comments

Comments
 (0)