Nuke user CFLAGS/CXXFLAGS if debug is set.
This commit is contained in:
parent
64490e88e4
commit
d36b5c78bd
5
wscript
5
wscript
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user