Skip to content

Commit 4f1c118

Browse files
mingwandroidAlexpux
authored andcommitted
distutils: cygwinccompiler dont strip modules if pydebug
Co-authored-by: Алексей <[email protected]>
1 parent fd6bbfe commit 4f1c118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/distutils/cygwinccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def link(self, target_desc, objects, output_filename, output_dir=None,
236236
# (On my machine: 10KiB < stripped_file < ??100KiB
237237
# unstripped_file = stripped_file + XXX KiB
238238
# ( XXX=254 for a typical python extension))
239-
if not debug:
239+
if not debug and not hasattr(sys, 'gettotalrefcount'):
240240
extra_preargs.append("-s")
241241

242242
UnixCCompiler.link(self, target_desc, objects, output_filename,

0 commit comments

Comments
 (0)