Skip to content

Commit 37d04ab

Browse files
JGamache-autodeskwjakob
authored andcommitted
Fixes #1295: Handle debug interpreter (#2025)
If a debug interpreter is detected, we allow linking with pythonXX_d.lib under windows.
1 parent b4e5d58 commit 37d04ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
# endif
104104
# pragma warning(push)
105105
# pragma warning(disable: 4510 4610 4512 4005)
106-
# if defined(_DEBUG)
106+
# if defined(_DEBUG) && !defined(Py_DEBUG)
107107
# define PYBIND11_DEBUG_MARKER
108108
# undef _DEBUG
109109
# endif

0 commit comments

Comments
 (0)