Skip to content

Commit 9e3ce29

Browse files
authored
Update build_defs.bzl
1 parent ede8e89 commit 9e3ce29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_defs.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""A BUILD rule for Python extensions that are defined via pybind11."""
1717

1818
load("@bazel_skylib//lib:collections.bzl", "collections")
19+
load("@rules_cc//cc:defs.bzl", "cc_binary")
1920

2021
def pybind_extension(
2122
name,
@@ -64,7 +65,7 @@ def pybind_extension(
6465
kwargs["visibility"] = visibility
6566

6667
shared_lib_name = module_name + ".so"
67-
native.cc_binary(
68+
cc_binary(
6869
name = shared_lib_name,
6970
deps = collections.uniq(deps + pybind11_deps),
7071
copts = collections.uniq(copts + pybind11_copts),

0 commit comments

Comments
 (0)