CMake: Fix GCC_ARM Cortex-M33 and Cortex-M33-NS support

Add missing toolchain option to specify the CPU core
pull/13924/head
Hugues Kamba 2020-11-18 18:22:49 +00:00 committed by Martin Kojtal
parent 72d0fb9cc6
commit ea6661caf3
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
list(APPEND common_options
"-mthumb"
"-mcpu=cortex-m33+nodsp"
"-march=armv8-m.main"
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")

View File

@ -5,6 +5,7 @@
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
list(APPEND common_options
"-mthumb"
"-mcpu=cortex-m33+nodsp"
"-march=armv8-m.main"
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")