aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/google_benchmark/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/google_benchmark/BUILD')
-rw-r--r--bindings/python/google_benchmark/BUILD19
1 files changed, 3 insertions, 16 deletions
diff --git a/bindings/python/google_benchmark/BUILD b/bindings/python/google_benchmark/BUILD
index 89ec76e..0c8e3c1 100644
--- a/bindings/python/google_benchmark/BUILD
+++ b/bindings/python/google_benchmark/BUILD
@@ -1,4 +1,4 @@
-load("//bindings/python:build_defs.bzl", "py_extension")
+load("@nanobind_bazel//:build_defs.bzl", "nanobind_extension")
py_library(
name = "google_benchmark",
@@ -9,22 +9,10 @@ py_library(
],
)
-py_extension(
+nanobind_extension(
name = "_benchmark",
srcs = ["benchmark.cc"],
- copts = [
- "-fexceptions",
- "-fno-strict-aliasing",
- ],
- features = [
- "-use_header_modules",
- "-parse_headers",
- ],
- deps = [
- "//:benchmark",
- "@nanobind",
- "@python_headers",
- ],
+ deps = ["//:benchmark"],
)
py_test(
@@ -37,4 +25,3 @@ py_test(
":google_benchmark",
],
)
-