We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede8e89 commit 9e3ce29Copy full SHA for 9e3ce29
build_defs.bzl
@@ -16,6 +16,7 @@
16
"""A BUILD rule for Python extensions that are defined via pybind11."""
17
18
load("@bazel_skylib//lib:collections.bzl", "collections")
19
+load("@rules_cc//cc:defs.bzl", "cc_binary")
20
21
def pybind_extension(
22
name,
@@ -64,7 +65,7 @@ def pybind_extension(
64
65
kwargs["visibility"] = visibility
66
67
shared_lib_name = module_name + ".so"
- native.cc_binary(
68
+ cc_binary(
69
name = shared_lib_name,
70
deps = collections.uniq(deps + pybind11_deps),
71
copts = collections.uniq(copts + pybind11_copts),
0 commit comments