mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-03 13:22:02 +03:00
Enable optimisation with Asan with make in all.sh
All builds using ASAN_CFLAGS were with Asan but no optimisation, making them particularly slow. Indeed, we were overwriting CFLAGS which defaults to -O2 and not using any -O in the replacement. (CMake already has optimisations on with ASan.) While at it, also remove -Wall -Wextra which are redundant as they are already part of WARNING_CFLAGS which we are not overwriting. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
fa05a2516d
commit
154b84e664
@ -185,7 +185,7 @@ pre_initialize_variables () {
|
|||||||
export CTEST_OUTPUT_ON_FAILURE=1
|
export CTEST_OUTPUT_ON_FAILURE=1
|
||||||
|
|
||||||
# CFLAGS and LDFLAGS for Asan builds that don't use CMake
|
# 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
|
# Gather the list of available components. These are the functions
|
||||||
# defined in this script whose name starts with "component_".
|
# defined in this script whose name starts with "component_".
|
||||||
|
Loading…
x
Reference in New Issue
Block a user