diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-21 13:09:42 (GMT) |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-24 21:35:29 (GMT) |
commit | 766b2365a77bd6519aaaa4d0d6f2c7000feba589 (patch) | |
tree | 2a7dec60abfd02cd859d20d8f5547d1270e79d43 /configure.py | |
parent | d342acd8df37e1b3422a73c62d3fb06d95e6cbca (diff) | |
download | Ninja-766b2365a77bd6519aaaa4d0d6f2c7000feba589.zip Ninja-766b2365a77bd6519aaaa4d0d6f2c7000feba589.tar.gz Ninja-766b2365a77bd6519aaaa4d0d6f2c7000feba589.tar.bz2 |
Disable assertion checks unless --debug is enabled
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 2 |
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': |