Skip to content

Commit

Permalink
distutils: cygwinccompiler dont strip modules if pydebug
Browse files Browse the repository at this point in the history
Co-authored-by: Алексей <[email protected]>
  • Loading branch information
2 people authored and lazka committed Aug 25, 2023
1 parent fd6bbfe commit 4f1c118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/distutils/cygwinccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def link(self, target_desc, objects, output_filename, output_dir=None,
# (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,
Expand Down

0 comments on commit 4f1c118

Please sign in to comment.