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:
parent
fbe4c40386
commit
c32ee34612
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user