Skip to content

Commit

Permalink
Skip building universal targets by default (#943)
Browse files Browse the repository at this point in the history
Since `--cpu` won't change unless a `platform_mappings` file is set up,
these won't build.
  • Loading branch information
thii authored Dec 1, 2022
1 parent e0009f9 commit 9eecf4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/protoc_wrapper/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package(default_visibility = ["//visibility:public"])
universal_binary(
name = "universal_protoc",
binary = "@com_google_protobuf//:protoc",
tags = ["manual"],
target_compatible_with = select({
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
Expand All @@ -30,6 +31,7 @@ alias(
universal_binary(
name = "universal_protoc-gen-grpc-swift",
binary = "@com_github_grpc_grpc_swift//:protoc-gen-grpc-swift",
tags = ["manual"],
target_compatible_with = select({
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
Expand All @@ -53,6 +55,7 @@ alias(
universal_binary(
name = "universal_ProtoCompilerPlugin",
binary = "@com_github_apple_swift_protobuf//:ProtoCompilerPlugin",
tags = ["manual"],
target_compatible_with = select({
"@platforms//os:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
Expand Down

0 comments on commit 9eecf4b

Please sign in to comment.