cmake: cmse support for armv8-m

This commit is contained in:
raiden00pl 2023-07-13 16:26:06 +02:00 committed by Petro Karashchenko
parent db65b6b0e6
commit 019b7a39d4

View File

@ -59,4 +59,8 @@ if(CONFIG_ARMV8M_STACKCHECK)
list(APPEND PLATFORM_FLAGS -finstrument-functions -ffixed-r10)
endif()
if(CONFIG_ARMV8M_CMSE)
list(APPEND PLATFORM_FLAGS -mcmse)
endif()
add_compile_options(${PLATFORM_FLAGS})