mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Fix Cortex-M33 GCC build
The GCC flag to specify the floating-point hardware (`mfpu`) does not accept the value `none`. The default value is `auto` which causes the compiler to select the floating-point and Advanced SIMD instructions based on the settings of -mcpu and -march. The extension option `+nofp` has been added to disable floating point instructions.pull/14313/head
parent
26606218ad
commit
cd6cb71c29
|
@ -5,8 +5,7 @@
|
|||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
list(APPEND common_options
|
||||
"-mthumb"
|
||||
"-mcpu=cortex-m33+nodsp"
|
||||
"-mfpu=none"
|
||||
"-mcpu=cortex-m33+nodsp+nofp"
|
||||
)
|
||||
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||
list(APPEND common_options
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
list(APPEND common_options
|
||||
"-mthumb"
|
||||
"-mcpu=cortex-m33+nodsp"
|
||||
"-mfpu=none"
|
||||
"-mcpu=cortex-m33+nodsp+nofp"
|
||||
)
|
||||
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||
list(APPEND common_options
|
||||
|
|
Loading…
Reference in New Issue