summaryrefslogtreecommitdiff
path: root/examples/build_system/cmake/cpu/cortex-m0plus.cmake
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-17 23:08:06 +0700
committerhathach <[email protected]>2024-04-19 23:16:59 +0700
commit824e39ddeb762a0876702304ac95ea3b1d40cb5a (patch)
tree27fd66a64a37c8986fc16ff1b3e8780c63864c0c /examples/build_system/cmake/cpu/cortex-m0plus.cmake
parent5ca68ec049c56cd04db8fde2c9fb50f19a4e9263 (diff)
more clang update
Diffstat (limited to 'examples/build_system/cmake/cpu/cortex-m0plus.cmake')
-rw-r--r--examples/build_system/cmake/cpu/cortex-m0plus.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/build_system/cmake/cpu/cortex-m0plus.cmake b/examples/build_system/cmake/cpu/cortex-m0plus.cmake
index bc2257048..2438ca96a 100644
--- a/examples/build_system/cmake/cpu/cortex-m0plus.cmake
+++ b/examples/build_system/cmake/cpu/cortex-m0plus.cmake
@@ -4,14 +4,15 @@ if (TOOLCHAIN STREQUAL "gcc")
-mcpu=cortex-m0plus
-mfloat-abi=soft
)
-
set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "")
+elseif (TOOLCHAIN STREQUAL "clang")
+ message(FATAL_ERROR "Clang is not supported for this target")
+
elseif (TOOLCHAIN STREQUAL "iar")
set(TOOLCHAIN_COMMON_FLAGS
--cpu cortex-m0
)
-
set(FREERTOS_PORT IAR_ARM_CM0 CACHE INTERNAL "")
endif ()