Skip to content

Commit e71d379

Browse files
mkruskal-googletonyliaoss
authored andcommitted
Add an alias to undo accidental unannounced breaking change
PiperOrigin-RevId: 862895639
1 parent 41ad19a commit e71d379

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

bazel/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,8 @@ filegroup(
6969
"//bazel/private:__pkg__",
7070
],
7171
)
72+
73+
alias(
74+
name = "prefer_prebuilt_protoc",
75+
actual = "//bazel/flags:prefer_prebuilt_protoc",
76+
)

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 = ["//visibility:private"],
44+
visibility = ["//bazel:__pkg__"],
4545
)
4646

4747
config_setting(

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/flags:prefer_prebuilt_protoc
6+
common --@com_google_protobuf//bazel:prefer_prebuilt_protoc

0 commit comments

Comments
 (0)