summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-17 22:28:14 -0500
committerDavid Robillard <d@drobilla.net>2014-12-18 02:26:51 -0500
commitd36b5c78bdb4cbb19d2817c86cd0e3c5cd899fe4 (patch)
treefa00d44d54d055835e3c830009c8108ff902be6e /wscript
parent64490e88e4f8c5fe7ad04ac25ca7f1d2cb29f90e (diff)
Nuke user CFLAGS/CXXFLAGS if debug is set.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index f84098f740..67fc799763 100644
--- a/wscript
+++ b/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