Browse Source

Fix fail with pydebug in tf (old)

shadchin 1 year ago
parent
commit
b35f714f9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/tools/python3/src/Include/pyconfig.h

+ 1 - 1
contrib/tools/python3/src/Include/pyconfig.h

@@ -43,7 +43,7 @@
 #include "pyconfig-musl.h"
 #endif
 
-#if !defined(NDEBUG) && !defined(Py_DEBUG) && !defined(Py_LIMITED_API)
+#if !defined(NDEBUG) && !defined(Py_DEBUG) && !defined(Py_LIMITED_API) && !defined(DISABLE_PYDEBUG)
 #define Py_DEBUG
 #define GC_NDEBUG
 #endif