Skip to content

Commit 732ed49

Browse files
mkruskal-googletonyliaoss
authored andcommitted
Fix the prefer_prebuilt_protoc alias to use the correct originally announced location
PiperOrigin-RevId: 865584147
1 parent d808a97 commit 732ed49

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bazel/BUILD

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,3 @@ filegroup(
8787
"//bazel/private:__pkg__",
8888
],
8989
)
90-
91-
alias(
92-
name = "prefer_prebuilt_protoc",
93-
actual = "//bazel/flags:prefer_prebuilt_protoc",
94-
)

bazel/flags/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bool_flag(
4141
name = "prefer_prebuilt_protoc",
4242
# TODO: this should be True after the feature is vetted with some adoption
4343
build_setting_default = False,
44-
visibility = ["//bazel:__pkg__"],
44+
visibility = ["//bazel/toolchains:__pkg__"],
4545
)
4646

4747
config_setting(

bazel/toolchains/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ filegroup(
4141
"//bazel:__pkg__",
4242
],
4343
)
44+
45+
alias(
46+
name = "prefer_prebuilt_protoc",
47+
actual = "//bazel/flags:prefer_prebuilt_protoc",
48+
)

examples/example_without_cc_toolchain/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ common --per_file_copt=external/.*protobuf.*/src/google/protobuf/compiler/main.c
33
common --host_per_file_copt=external/.*protobuf.*/src/google/protobuf/compiler/main.cc@--THIS_CC_TOOLCHAIN_IS_BROKEN
44
# But, users should be able to use pre-built protoc toolchains instead.
55
common --incompatible_enable_proto_toolchain_resolution
6-
common --@com_google_protobuf//bazel:prefer_prebuilt_protoc
6+
common --@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc

0 commit comments

Comments
 (0)