Nuke user CFLAGS/CXXFLAGS if debug is set.

This commit is contained in:
David Robillard 2014-12-17 22:28:14 -05:00
parent 64490e88e4
commit d36b5c78bd
1 changed files with 5 additions and 0 deletions

View File

@ -658,6 +658,11 @@ def configure(conf):
conf.env['MSVC_TARGETS'] = ['x64']
conf.load('msvc')
if Options.options.debug:
# Nuke user CFLAGS/CXXFLAGS if debug is set (they likely contain -O3, NDEBUG, etc)
conf.env['CFLAGS'] = []
conf.env['CXXFLAGS'] = []
conf.env['VERSION'] = VERSION
conf.env['MAJOR'] = MAJOR
conf.env['MINOR'] = MINOR