mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 20:55:36 +01:00
Remove unnecessary memory buffer alloc and memory backtrace unsets
Also unify the sanitization LDFLAGS with development
This commit is contained in:
parent
1f5a596fe2
commit
c73f857217
@ -831,7 +831,6 @@ component_test_check_params_functionality () {
|
|||||||
scripts/config.pl full # includes CHECK_PARAMS
|
scripts/config.pl full # includes CHECK_PARAMS
|
||||||
# Make MBEDTLS_PARAM_FAILED call mbedtls_param_failed().
|
# Make MBEDTLS_PARAM_FAILED call mbedtls_param_failed().
|
||||||
scripts/config.pl unset MBEDTLS_CHECK_PARAMS_ASSERT
|
scripts/config.pl unset MBEDTLS_CHECK_PARAMS_ASSERT
|
||||||
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
|
|
||||||
# Only build and run tests. Do not build sample programs, because
|
# Only build and run tests. Do not build sample programs, because
|
||||||
# they don't have a mbedtls_param_failed() function.
|
# they don't have a mbedtls_param_failed() function.
|
||||||
make CC=gcc CFLAGS='-Werror -O1' lib test
|
make CC=gcc CFLAGS='-Werror -O1' lib test
|
||||||
@ -1049,7 +1048,7 @@ component_test_m32_o0 () {
|
|||||||
# Build once with -O0, to compile out the i386 specific inline assembly
|
# Build once with -O0, to compile out the i386 specific inline assembly
|
||||||
msg "build: i386, make, gcc -O0 (ASan build)" # ~ 30s
|
msg "build: i386, make, gcc -O0 (ASan build)" # ~ 30s
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
make CC=gcc CFLAGS='-O0 -Werror -Wall -Wextra -m32 -fsanitize=address' LDFLAGS='-m32'
|
make CC=gcc CFLAGS='-O0 -Werror -Wall -Wextra -m32 -fsanitize=address' LDFLAGS='-m32 -fsanitize=address'
|
||||||
|
|
||||||
msg "test: i386, make, gcc -O0 (ASan build)"
|
msg "test: i386, make, gcc -O0 (ASan build)"
|
||||||
make test
|
make test
|
||||||
@ -1127,7 +1126,6 @@ component_test_have_int64 () {
|
|||||||
component_test_no_udbl_division () {
|
component_test_no_udbl_division () {
|
||||||
msg "build: MBEDTLS_NO_UDBL_DIVISION native" # ~ 10s
|
msg "build: MBEDTLS_NO_UDBL_DIVISION native" # ~ 10s
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
|
|
||||||
scripts/config.pl set MBEDTLS_NO_UDBL_DIVISION
|
scripts/config.pl set MBEDTLS_NO_UDBL_DIVISION
|
||||||
make CFLAGS='-Werror -O1'
|
make CFLAGS='-Werror -O1'
|
||||||
|
|
||||||
@ -1138,7 +1136,6 @@ component_test_no_udbl_division () {
|
|||||||
component_test_no_64bit_multiplication () {
|
component_test_no_64bit_multiplication () {
|
||||||
msg "build: MBEDTLS_NO_64BIT_MULTIPLICATION native" # ~ 10s
|
msg "build: MBEDTLS_NO_64BIT_MULTIPLICATION native" # ~ 10s
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # too slow for tests
|
|
||||||
scripts/config.pl set MBEDTLS_NO_64BIT_MULTIPLICATION
|
scripts/config.pl set MBEDTLS_NO_64BIT_MULTIPLICATION
|
||||||
make CFLAGS='-Werror -O1'
|
make CFLAGS='-Werror -O1'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user