summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-09-21 13:09:42 (GMT)
committerPeter Collingbourne <peter@pcc.me.uk>2011-09-24 21:35:29 (GMT)
commit766b2365a77bd6519aaaa4d0d6f2c7000feba589 (patch)
tree2a7dec60abfd02cd859d20d8f5547d1270e79d43 /configure.py
parentd342acd8df37e1b3422a73c62d3fb06d95e6cbca (diff)
downloadNinja-766b2365a77bd6519aaaa4d0d6f2c7000feba589.zip
Ninja-766b2365a77bd6519aaaa4d0d6f2c7000feba589.tar.gz
Ninja-766b2365a77bd6519aaaa4d0d6f2c7000feba589.tar.bz2
Disable assertion checks unless --debug is enabled
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index a9479bf..99d9108 100755
--- a/configure.py
+++ b/configure.py
@@ -77,7 +77,7 @@ n.variable('builddir', 'build')
cflags = ['-g', '-Wall', '-Wno-deprecated', '-fno-exceptions',
'-fvisibility=hidden', '-pipe']
if not options.debug:
- cflags.append('-O2')
+ cflags += ['-O2', '-DNDEBUG']
ldflags = ['-L$builddir']
libs = []
if platform == 'mingw':