STM32WL : ADDING CORTEX-M4 LINK OPTION

Add link option in file used for compilation.
Due to a bug in mbedtools environment.
pull/14207/head
reme 2021-02-08 09:56:52 +01:00
parent b9e2fab52a
commit 6220ca5fd5
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
"-mcpu=cortex-m4"
"-mfpu=none"
)
#Necessary as the linker does not always detect
#the architecture from the objectfiles correctly.
list(APPEND link_options
"--cpu=Cortex-M4.no_fp"
)
endif()
function(mbed_set_cpu_core_definitions target)