Skip to content

Commit

Permalink
-Change: asserts are disabled by default in Release builds
Browse files Browse the repository at this point in the history
still enabled by default in debug builds
and can be forced with --enable-assert and --disable-assert options
of configure
  • Loading branch information
miniupnp committed Dec 29, 2016
1 parent 91f7f72 commit 3d68b0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.lib
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ check_params() {
# Show what we configured
if [ "$enable_debug" = "0" ]; then
log 1 "using debug level... no"
if [ $enable_assert -eq 1 ]; then
enable_assert=0
log 1 "disabling asserts"
fi
elif [ "$enable_profiling" != "0" ]; then
log 1 "using debug level... profiling (debug level $enable_debug)"
else
Expand Down

0 comments on commit 3d68b0b

Please sign in to comment.