[benchmark][NFC] Update cc_binary load (#169710)

cc_binary now needs to be loaded from the rules_cc repo

I don't think this file is actually used, but updating it to be more
syntactically correct anyway.
This commit is contained in:
Jordan Rupprecht 2025-12-01 10:00:53 -06:00 committed by GitHub
parent 979a987d3a
commit 46c34bec13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,8 @@
This file contains some build definitions for C++ extensions used in the Google Benchmark Python bindings.
"""
load("//third_party/bazel_rules/rules_cc/cc:cc_binary.bzl", "cc_binary")
_SHARED_LIB_SUFFIX = {
"//conditions:default": ".so",
"//:windows": ".dll",
@ -10,7 +12,7 @@ _SHARED_LIB_SUFFIX = {
def py_extension(name, srcs, hdrs = [], copts = [], features = [], deps = []):
for shared_lib_suffix in _SHARED_LIB_SUFFIX.values():
shared_lib_name = name + shared_lib_suffix
native.cc_binary(
cc_binary(
name = shared_lib_name,
linkshared = True,
linkstatic = True,