Skip to content

Commit aa950d7

Browse files
committed
Add comment explaining the PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF
Signed-off-by: David Gardner <[email protected]>
1 parent 0bb5101 commit aa950d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
list(APPEND CMAKE_MESSAGE_CONTEXT "python")
1717

18+
# Disable the assert that checks for the GIL being held during incref/decref
19+
# https://pybind11.readthedocs.io/en/stable/changelog.html#version-2-11-1-july-17-2023
1820
add_compile_definitions("PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF=1")
1921

2022
if (MORPHEUS_BUILD_MORPHEUS_CORE)

0 commit comments

Comments
 (0)