From 20e17664fbc96d151d387e91720944959f9a4d3f 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/components-compiler.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scripts/components-compiler.sh b/tests/scripts/components-compiler.sh index 5ccd7cc7dd..9b688afc9c 100644 --- a/tests/scripts/components-compiler.sh +++ b/tests/scripts/components-compiler.sh @@ -56,7 +56,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 () { @@ -74,7 +74,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 () {