Skip to content

Commit 46c34be

Browse files
authored
[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.
1 parent 979a987 commit 46c34be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

third-party/benchmark/bindings/python/build_defs.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
This file contains some build definitions for C++ extensions used in the Google Benchmark Python bindings.
33
"""
44

5+
load("//third_party/bazel_rules/rules_cc/cc:cc_binary.bzl", "cc_binary")
6+
57
_SHARED_LIB_SUFFIX = {
68
"//conditions:default": ".so",
79
"//:windows": ".dll",
@@ -10,7 +12,7 @@ _SHARED_LIB_SUFFIX = {
1012
def py_extension(name, srcs, hdrs = [], copts = [], features = [], deps = []):
1113
for shared_lib_suffix in _SHARED_LIB_SUFFIX.values():
1214
shared_lib_name = name + shared_lib_suffix
13-
native.cc_binary(
15+
cc_binary(
1416
name = shared_lib_name,
1517
linkshared = True,
1618
linkstatic = True,

0 commit comments

Comments
 (0)