You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Add -Werror -Wfatal-errors -g flags to configure --enable-test.
These flags are used for all tests but it was not possible to add them to configure before the change in 046d6643. This is especially important for adhoc tests to ensure the flags are not forgotten.
Remove the flags from test make commands where they were being applied.
There is no change for production builds.
This commit is contained in:
+1
-2
@@ -531,7 +531,7 @@ eval
|
||||
&log(INFO, "autogenerate code");
|
||||
|
||||
# Build code
|
||||
executeTest("CFLAGS='-Wfatal-errors -g' make -C ${strBuildPath} build-config build-error build-help");
|
||||
executeTest("make -C ${strBuildPath} build-config build-error build-help");
|
||||
|
||||
if ($bGenOnly)
|
||||
{
|
||||
@@ -693,7 +693,6 @@ eval
|
||||
|
||||
# Build configure/compile options and see if they have changed from the previous build
|
||||
my $strCFlags =
|
||||
"-Wfatal-errors -g" .
|
||||
(vmWithBackTrace($strBuildVM) && $bBackTrace ? ' -DWITH_BACKTRACE' : '') .
|
||||
($bDebugTestTrace ? ' -DDEBUG_TEST_TRACE' : '');
|
||||
my $strLdFlags = vmWithBackTrace($strBuildVM) && $bBackTrace ? '-lbacktrace' : '';
|
||||
|
||||
Reference in New Issue
Block a user