Skip to content

Commit

Permalink
Fix the load broken by a new version of buildifier.
Browse files Browse the repository at this point in the history
BEGIN_PUBLIC
Fix the load broken by a new version of buildifier.

Apparently the native-cc lint has been split into native-cc and native-cc-proto. This meant that our native.cc_proto_library was getting incorrectly turned into cc_proto_library when copybara invoked buildifier.
END_PUBLIC

PiperOrigin-RevId: 622097522
Change-Id: Idb89a5f9facae20f490ac8f83a5adf2859cd52ab
  • Loading branch information
Googler authored and copybara-github committed Apr 5, 2024
1 parent 1361256 commit 5467790
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cc/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", "cc_proto_library")

"""Starlark rules for building C++ projects."""

load("//cc/private/rules_impl:cc_flags_supplier.bzl", _cc_flags_supplier = "cc_flags_supplier")
Expand Down Expand Up @@ -105,8 +103,8 @@ def cc_proto_library(**attrs):
**attrs: Rule attributes
"""

# buildifier: disable=native-cc
cc_proto_library(**_add_tags(attrs))
# buildifier: disable=native-cc-proto
native.cc_proto_library(**_add_tags(attrs))

def fdo_prefetch_hints(**attrs):
"""Bazel fdo_prefetch_hints rule.
Expand Down

0 comments on commit 5467790

Please sign in to comment.