mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Fix GCC_ARM Cortex-M0 support
Add missing toolchain option to specify the CPU corepull/13924/head
parent
ccd1c65cb8
commit
229b9ad43b
|
@ -5,6 +5,7 @@
|
||||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||||
list(APPEND common_options
|
list(APPEND common_options
|
||||||
"-mthumb"
|
"-mthumb"
|
||||||
|
"-mcpu=cortex-m0"
|
||||||
)
|
)
|
||||||
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||||
list(APPEND c_cxx_compile_options
|
list(APPEND c_cxx_compile_options
|
||||||
|
|
Loading…
Reference in New Issue