mirror of https://github.com/ARMmbed/mbed-os.git
STM32WL : ADDING CORTEX-M4 LINK OPTION
Add link option in file used for compilation. Due to a bug in mbedtools environment.pull/14207/head
parent
b9e2fab52a
commit
6220ca5fd5
|
@ -12,6 +12,11 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||||
"-mcpu=cortex-m4"
|
"-mcpu=cortex-m4"
|
||||||
"-mfpu=none"
|
"-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()
|
endif()
|
||||||
|
|
||||||
function(mbed_set_cpu_core_definitions target)
|
function(mbed_set_cpu_core_definitions target)
|
||||||
|
|
Loading…
Reference in New Issue