summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/patches/reduce-pydebug.patch
blob: 1a526b2a1b709f3d0912b8154ad3752ae90fa496 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
    YT-18818: Disable GC_DEBUG in relwithdebinfo mode

    REVIEW: 3716232
--- a/Python/gc.c	(11f41021041cc1f16e346fd25bc37037b47700ea)
+++ b/Python/gc.c	(32de4cb7380e0b1efe00e6abf514e690933e781c)
@@ -41,3 +41,5 @@ module gc
 #ifdef Py_DEBUG
-#  define GC_DEBUG
+#  ifndef GC_NDEBUG
+#    define GC_DEBUG
+#  endif
 #endif