commit | 6be4dc75d3eec3f009e4f0c81e9f8c0008c97934 | [log] [tgz] |
---|---|---|
author | Mike Kruskal <mkruskal@google.com> | Mon Apr 03 12:36:10 2023 -0700 |
committer | fweikert <fwe@google.com> | Thu Apr 06 19:15:51 2023 +0200 |
tree | 6ed015e7ab9a56a7b73b3a76830f798b73c31706 | |
parent | f7829f855bc31aaf0c0fcef55ef56adec84daa9e [diff] |
Add an option retention option to proto_library. PiperOrigin-RevId: 521533139 Change-Id: Icda0b4a952703196084ca13ca2f0c33cbceb0c40
diff --git a/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl b/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl index f497a77..bbd4991 100644 --- a/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl +++ b/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl
@@ -220,6 +220,8 @@ args = ctx.actions.args() if ctx.fragments.proto.experimental_proto_descriptorsets_include_source_info(): args.add("--include_source_info") + if hasattr(ctx.attr, "_retain_options") and ctx.attr._retain_options: + args.add("--retain_options") strict_deps_mode = ctx.fragments.proto.strict_proto_deps() strict_deps = strict_deps_mode != "OFF" and strict_deps_mode != "DEFAULT"