diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-22 17:40:35 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-27 15:13:25 -0400 |
commit | ef203135b49eb37327fb6884c272108fef485e0d (patch) | |
tree | 512145c932ab2cbb1f1158b986091b9b6ca52bf0 /configure.ac | |
parent | 9b092dd388a98f8ceb8ec703fe2b757e88e96ec0 (diff) | |
download | libopus-ef203135b49eb37327fb6884c272108fef485e0d.tar.gz |
Adding ENABLE_HARDENING
Enables "safes" assertions even with ENABLE_ASSERTIONS isn't set
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3bd683b3..4b416fe5 100644 --- a/configure.ac +++ b/configure.ac @@ -759,6 +759,14 @@ AS_IF([test "$enable_assertions" = "yes"], [ AC_DEFINE([ENABLE_ASSERTIONS], [1], [Assertions]) ]) +AC_ARG_ENABLE([hardening], + [AS_HELP_STRING([--enable-hardening],[enable run-time checks that are cheap and safe for use in production])],, + [enable_hardening=no]) + +AS_IF([test "$enable_hardening" = "yes"], [ + AC_DEFINE([ENABLE_HARDENING], [1], [Hardening]) +]) + AC_ARG_ENABLE([fuzzing], [AS_HELP_STRING([--enable-fuzzing],[causes the encoder to make random decisions])],, [enable_fuzzing=no]) @@ -919,6 +927,7 @@ AC_MSG_NOTICE([ Run-time CPU detection: ........ ${rtcd_support} Custom modes: .................. ${enable_custom_modes} Assertion checking: ............ ${enable_assertions} + Hardening: ..................... ${enable_hardening} Fuzzing: ....................... ${enable_fuzzing} Check ASM: ..................... ${enable_check_asm} Ambisonics support: ............ ${enable_ambisonics} |