From bfe4fc6749fe9946e98356353d631eaff7397eb9 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 19 Jun 2024 16:30:36 +0200 Subject: [PATCH] Use -O2 for build+test with earliest compilers The compilation is slower but we get more potential warnings and running the tests is faster. Signed-off-by: Gilles Peskine --- tests/scripts/all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 229e6dff8c..fcc20f4d80 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -3031,7 +3031,7 @@ support_test_clang_latest_opt () { component_test_clang_earliest_opt () { scripts/config.py full - test_build_opt 'full config' "$CLANG_EARLIEST" -O0 + test_build_opt 'full config' "$CLANG_EARLIEST" -O2 } support_test_clang_earliest_opt () { type "$CLANG_EARLIEST" >/dev/null 2>/dev/null @@ -3047,7 +3047,7 @@ support_test_gcc_latest_opt () { component_test_gcc_earliest_opt () { scripts/config.py full - test_build_opt 'full config' "$GCC_EARLIEST" -O0 + test_build_opt 'full config' "$GCC_EARLIEST" -O2 } support_test_gcc_earliest_opt () { type "$GCC_EARLIEST" >/dev/null 2>/dev/null