Permalink
Browse files

Added setup build --debug to add debug compiler flags on Windows.

  • Loading branch information...
1 parent bd3b16d commit 554f26f7810945f81d1c18e0f8124389c896ffd0 @mkleehammer committed Jun 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 setup.py
View
@@ -134,6 +134,10 @@ def get_compiler_settings(version_str):
settings['libraries'].append('odbc32')
settings['libraries'].append('advapi32')
+ if '--debug' in sys.argv:
+ sys.argv.remove('--debug')
+ settings['extra_compile_args'].extend('/Od /Ge /GS /GZ /RTC1 /Wp64 /Yd'.split())
+
elif os.environ.get("OS", '').lower().startswith('windows'):
# Windows Cygwin (posix on windows)
# OS name not windows, but still on Windows

0 comments on commit 554f26f

Please sign in to comment.