mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 02:35:38 +01:00
baremetal: Use Oz when building with armclang
Oz is allowed to make size optimizations that make the code slower, where Os isn't. Optimize with Oz, as we care more about having a small code footprint than having fast code.
This commit is contained in:
parent
393338ca78
commit
691aa961b1
@ -155,7 +155,7 @@ baremetal_build_armc6()
|
|||||||
echo "Create 32-bit library-only baremetal build (ARMC6, Config: $BAREMETAL_CONFIG)"
|
echo "Create 32-bit library-only baremetal build (ARMC6, Config: $BAREMETAL_CONFIG)"
|
||||||
armc6_ver=$($ARMC6_CC --version | sed -n 's/.*ARM Compiler \([^ ]*\)$/\1/p')
|
armc6_ver=$($ARMC6_CC --version | sed -n 's/.*ARM Compiler \([^ ]*\)$/\1/p')
|
||||||
|
|
||||||
CFLAGS_BAREMETAL="-Os --target=arm-arm-none-eabi -mthumb -mcpu=cortex-m0plus -xc --std=c99"
|
CFLAGS_BAREMETAL="-Oz --target=arm-arm-none-eabi -mthumb -mcpu=cortex-m0plus -xc --std=c99"
|
||||||
if [ $check -ne 0 ]; then
|
if [ $check -ne 0 ]; then
|
||||||
CFLAGS_BAREMETAL="$CFLAGS_BAREMETAL -Werror"
|
CFLAGS_BAREMETAL="$CFLAGS_BAREMETAL -Werror"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user