Always use "-O1 -Werror" in crypto-only test builds
Pass -Werror because any compiler warning would be suspicious. Pass -O1 because at -O0, gcc doesn't do as much analysis.
This commit is contained in:
parent
ec541fe0a1
commit
6bb3915e96
1 changed files with 3 additions and 3 deletions
|
@ -908,21 +908,21 @@ are_empty_libraries () {
|
||||||
component_build_crypto_default () {
|
component_build_crypto_default () {
|
||||||
msg "build: make, crypto only"
|
msg "build: make, crypto only"
|
||||||
scripts/config.py crypto
|
scripts/config.py crypto
|
||||||
make CFLAGS='-O0'
|
make CFLAGS='-O1 -Werror'
|
||||||
if_build_succeeded are_empty_libraries library/libmbedx509.* library/libmbedtls.*
|
if_build_succeeded are_empty_libraries library/libmbedx509.* library/libmbedtls.*
|
||||||
}
|
}
|
||||||
|
|
||||||
component_build_crypto_full () {
|
component_build_crypto_full () {
|
||||||
msg "build: make, crypto only, full config"
|
msg "build: make, crypto only, full config"
|
||||||
scripts/config.py crypto_full
|
scripts/config.py crypto_full
|
||||||
make CFLAGS='-O0'
|
make CFLAGS='-O1 -Werror'
|
||||||
if_build_succeeded are_empty_libraries library/libmbedx509.* library/libmbedtls.*
|
if_build_succeeded are_empty_libraries library/libmbedx509.* library/libmbedtls.*
|
||||||
}
|
}
|
||||||
|
|
||||||
component_build_crypto_baremetal () {
|
component_build_crypto_baremetal () {
|
||||||
msg "build: make, crypto only, baremetal config"
|
msg "build: make, crypto only, baremetal config"
|
||||||
scripts/config.py crypto_baremetal
|
scripts/config.py crypto_baremetal
|
||||||
make CFLAGS='-O0 -Werror'
|
make CFLAGS='-O1 -Werror'
|
||||||
if_build_succeeded are_empty_libraries library/libmbedx509.* library/libmbedtls.*
|
if_build_succeeded are_empty_libraries library/libmbedx509.* library/libmbedtls.*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue