blob: a002f9866d1c0786eb652e43b5fbef9622617014 [file] [log] [blame]
diff -Naur Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py Python-3.8.0/Lib/distutils/cygwinccompiler.py
--- Python-3.8.0-orig/Lib/distutils/cygwinccompiler.py 2019-10-22 10:04:05.048267100 +0300
+++ Python-3.8.0/Lib/distutils/cygwinccompiler.py 2019-10-22 10:04:06.140269100 +0300
@@ -238,7 +238,7 @@
# (On my machine: 10KiB < stripped_file < ??100KiB
# unstripped_file = stripped_file + XXX KiB
# ( XXX=254 for a typical python extension))
- if not debug:
+ if not debug and not hasattr(sys, 'gettotalrefcount'):
extra_preargs.append("-s")
UnixCCompiler.link(self, target_desc, objects, output_filename,