diff options
author | Yunqing Wang <yunqingwang@google.com> | 2014-07-15 16:18:34 -0700 |
---|---|---|
committer | Yunqing Wang <yunqingwang@google.com> | 2014-07-21 09:20:03 -0700 |
commit | 765485cab21021ac4ba9d1cbddce2432f421de99 (patch) | |
tree | 80275309bfab99a36ac5102806d0dac39c00d70f /build/make/configure.sh | |
parent | f932e15210820b806e7932f2ceb2e5f8758c8cc8 (diff) | |
download | libvpx-765485cab21021ac4ba9d1cbddce2432f421de99.tar libvpx-765485cab21021ac4ba9d1cbddce2432f421de99.tar.gz libvpx-765485cab21021ac4ba9d1cbddce2432f421de99.tar.bz2 libvpx-765485cab21021ac4ba9d1cbddce2432f421de99.zip |
Add -DNDEBUG when config option debug is disabled
For gcc, when libvpx config option debug is disabled, added the
flag -DNDEBUG to disable the assertions in libvpx for some speedup.
Change-Id: Ifcb7b9e8ef5cbe5d07a24407b53b9a2923f596ee
Diffstat (limited to 'build/make/configure.sh')
-rwxr-xr-x | build/make/configure.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh index f22e3e0ac..d25f31333 100755 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -1222,7 +1222,12 @@ EOF fi fi - enabled debug && check_add_cflags -g && check_add_ldflags -g + if enabled debug; then + check_add_cflags -g && check_add_ldflags -g + else + check_add_cflags -DNDEBUG + fi + enabled gprof && check_add_cflags -pg && check_add_ldflags -pg enabled gcov && check_add_cflags -fprofile-arcs -ftest-coverage && |