Skip to content

Commit

Permalink
Change --debug to --windbg
Browse files Browse the repository at this point in the history
This is flag only for development troubleshooting.  It is not related to building against a
debug version of Python which needs --debug.

Closes #465
  • Loading branch information
mkleehammer committed Sep 28, 2018
1 parent 2c3ad80 commit 6a1f531
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ def get_compiler_settings(version_str):
'/wd4191', # casts to PYCFunction which doesn't have the keywords parameter
])

if '--debug' in sys.argv:
sys.argv.remove('--debug')
if '--windbg' in sys.argv:
# Used only temporarily to add some debugging flags to get better stack traces in
# the debugger. This is not related to building debug versions of Python which use
# "--debug".
sys.argv.remove('--windbg')
settings['extra_compile_args'].extend('/Od /Ge /GS /GZ /RTC1 /Wp64 /Yd'.split())

settings['libraries'].append('odbc32')
Expand Down

0 comments on commit 6a1f531

Please sign in to comment.