Skip to content

Commit

Permalink
Try to unbreak Py3.12 by giving the current_py_cc_libs to the nanobin…
Browse files Browse the repository at this point in the history
…d_extension
  • Loading branch information
nicholasjng committed Mar 22, 2024
1 parent 68dbfd8 commit 35d12a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ NANOBIND_FEATURES = [
NANOBIND_DEPS = [
Label("@nanobind"),
"@rules_python//python/cc:current_py_cc_headers",
]
] + select({
# we need to link in the Python libs only on Windows to signal to the linker that it
# needs to go searching for these symbols at runtime.
"@rules_cc//cc/compiler:msvc-cl": ["@rules_python//python/cc:current_py_cc_libs"],
"//conditions:default": [],
})

# A C++ Python extension library built with nanobind.
# Given a name $NAME, defines the following targets:
Expand Down

0 comments on commit 35d12a9

Please sign in to comment.