diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index b43f999d8..f72fe5282 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -185,7 +185,7 @@ pre_initialize_variables () { export CTEST_OUTPUT_ON_FAILURE=1 # CFLAGS and LDFLAGS for Asan builds that don't use CMake - ASAN_CFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined -fno-sanitize-recover=all' + ASAN_CFLAGS='-O2 -Werror -fsanitize=address,undefined -fno-sanitize-recover=all' # Gather the list of available components. These are the functions # defined in this script whose name starts with "component_".