CMAKE : correct "Cortex-M7F" link options for ARM

pull/14159/head
jeromecoutant 2021-01-20 10:34:07 +01:00
parent 96aa1bb067
commit 541c6817c1
1 changed files with 1 additions and 7 deletions

View File

@ -10,17 +10,11 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
"-mcpu=cortex-m7"
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
list(APPEND c_cxx_compile_options
list(APPEND common_options
"-mcpu=cortex-m7"
"-mfpu=fpv5-sp-d16"
"-mfloat-abi=hard"
)
list(APPEND asm_compile_options
"-mcpu=Cortex-M7.fp.sp"
)
list(APPEND link_options
"--cpu=Cortex-M7.fp.sp"
)
endif()