Skip to content

Commit 59da1e9

Browse files
hugueskamba0xc0170
authored andcommitted
CMake: Fix GCC_ARM Cortex-M3 support
Add missing toolchain option to specify the CPU core
1 parent 4acc57c commit 59da1e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/cmake/cores/Cortex-M3.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
66
list(APPEND common_options
77
"-mthumb"
8+
"-mcpu=cortex-m3"
89
)
910
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1011
list(APPEND c_cxx_compile_options

0 commit comments

Comments
 (0)