1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Build with -DNDEBUG by default but disable for testing.

This commit is contained in:
David Steele 2018-03-09 18:28:34 -05:00
parent fbe4c40386
commit c32ee34612
3 changed files with 9 additions and 2 deletions

View File

@ -78,6 +78,10 @@
<p>Add <code>cfgOptionTest()</code> and update <code>cfgOption()</code> calls that are better implemented as <code>cfgOptionTest()</code>.</p>
</release-item>
<release-item>
<p>Build with <id>-DNDEBUG</id> by default but disable for testing.</p>
</release-item>
</release-development-list>
</release-core-list>

View File

@ -22,11 +22,14 @@ CWARN = -Wfatal-errors -Wall -Wextra -Wwrite-strings -Wno-clobbered -Wswitch-enu
# Automatically generate Perl compile options for the local system
CPERL = `perl -MExtUtils::Embed -e ccopts`
# Debug options
CDEBUG = -DNDEBUG
# Extra compile options to be set by caller
CEXTRA =
# Concatenate options for easy usage
CFLAGS = $(CINCLUDE) $(CSTD) $(COPT) $(CWARN) $(CPERL) $(CEXTRA)
CFLAGS = $(CINCLUDE) $(CSTD) $(COPT) $(CWARN) $(CPERL) $(CDEBUG) $(CEXTRA)
####################################################################################################################################
# Link options

View File

@ -522,7 +522,7 @@ eval
}
executeTest(
"docker exec -i test-build make --silent --directory ${strBuildPath} CEXTRA=-g",
"docker exec -i test-build make --silent --directory ${strBuildPath} CEXTRA=-g CDEBUG=",
{bShowOutputAsync => $bLogDetail});
executeTest(