Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "robotpy_build/pybind11"]
path = robotpy_build/pybind11
url = https://github.com/pybind/pybind11.git
url = https://github.com/rwgk/pybind11
2 changes: 2 additions & 0 deletions robotpy_build/autowrap/render_pybind11.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def cls_decl(r: RenderBuffer, cls: ClassContext):
class_params.append(
f"std::unique_ptr<typename {cls.full_cpp_name}, py::nodelete>"
)
else:
class_params.append("py::smart_holder")

if cls.trampoline:
class_params.append(cls.trampoline.var)
Expand Down
1 change: 0 additions & 1 deletion robotpy_build/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def _spawn(cmd):
self.compiler._rpy_spawn = self.compiler.spawn
self.compiler.spawn = _spawn
for ext in self.extensions:
ext.define_macros.append(("PYBIND11_USE_SMART_HOLDER_AS_DEFAULT", "1"))
if debug:
ext.define_macros.append(
("PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF", "1")
Expand Down
2 changes: 1 addition & 1 deletion robotpy_build/pybind11
Submodule pybind11 updated 141 files
Loading