This is needed to support older Bazel versions. PiperOrigin-RevId: 689104697pull/18954/head
parent
9f08ec543b
commit
41be4091d5
3 changed files with 8 additions and 3 deletions
@ -1,5 +1,6 @@ |
|||||||
"""Exposes cc_proto_aspect to rules_rust""" |
"""Exposes cc_proto_aspect to rules_rust""" |
||||||
|
|
||||||
load("//bazel/private:bazel_cc_proto_library.bzl", _cc_proto_aspect = "cc_proto_aspect") |
load("//bazel/private:bazel_cc_proto_library.bzl", _cc_proto_aspect = "cc_proto_aspect") # buildifier: disable=bzl-visibility |
||||||
|
load("//bazel/private:native.bzl", _native_cc_proto_aspect = "native_cc_proto_aspect") # buildifier: disable=bzl-visibility |
||||||
|
|
||||||
cc_proto_aspect = _cc_proto_aspect |
cc_proto_aspect = _cc_proto_aspect if not hasattr(native, "cc_proto_library") else _native_cc_proto_aspect |
||||||
|
@ -1,3 +1,5 @@ |
|||||||
"""Renames toplevel symbols so they can be exported in Starlark under the same name""" |
"""Renames toplevel symbols so they can be exported in Starlark under the same name""" |
||||||
|
|
||||||
native_proto_common = proto_common_do_not_use |
native_proto_common = proto_common_do_not_use |
||||||
|
|
||||||
|
native_cc_proto_aspect = cc_proto_aspect |
||||||
|
Loading…
Reference in new issue