From 98e8a868c98d0637834d8e2d646cd34e5698da56 Mon Sep 17 00:00:00 2001 From: Armando Montanez Date: Wed, 8 Nov 2023 10:24:19 -0800 Subject: [PATCH] Remove `nocopts` from cc_nanopb_proto_library With Bazel 7.0.0, nocopts has been removed and is no longer supported. The correct way to handle this is to subtract features using the `features` attribute (see bazelbuild/bazel#8706). --- extra/bazel/nanopb_cc_proto_library.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/bazel/nanopb_cc_proto_library.bzl b/extra/bazel/nanopb_cc_proto_library.bzl index e1a58d59..ba292b18 100644 --- a/extra/bazel/nanopb_cc_proto_library.bzl +++ b/extra/bazel/nanopb_cc_proto_library.bzl @@ -83,11 +83,11 @@ def cc_nanopb_proto_library(name, **kwargs): # buildifier: disable=function-doc alwayslink = kwargs.get("alwayslink"), copts = kwargs.get("copts"), defines = kwargs.get("defines"), + features = kwargs.get("features"), include_prefix = kwargs.get("include_prefix"), linkopts = kwargs.get("linkopts"), linkstatic = kwargs.get("linkstatic"), local_defines = kwargs.get("local_defines"), - nocopts = kwargs.get("nocopts"), strip_include_prefix = kwargs.get("strip_include_prefix"), visibility = kwargs.get("visibility"), tags = kwargs.get("tags"),