Enhance IAR CMake support.

This commit is contained in:
Mengsk
2023-12-13 17:19:13 +01:00
parent ccc59e8763
commit 3eb7d6ede9
3 changed files with 15 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ if (TOOLCHAIN STREQUAL "gcc")
elseif (TOOLCHAIN STREQUAL "iar")
set(TOOLCHAIN_COMMON_FLAGS
--cpu cortex-m4
--fpu VFPv4
--fpu VFPv4_sp
)
if (NOT DEFINED FREERTOS_PORT)

View File

@@ -26,6 +26,7 @@ list(APPEND TOOLCHAIN_COMMON_FLAGS
)
list(APPEND TOOLCHAIN_EXE_LINKER_FLAGS
--diag_suppress=Li065
)
include(${CMAKE_CURRENT_LIST_DIR}/set_flags.cmake)