mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Fix Cortex-M33-NS and Cortex-M33 ASM flags
The ASM flags were not supported by armclang, use the armclang alternatives. Removed armlink --cpu flag as they generate a CMake configuration time error. Furthermore, it is not necessary to specify the processor or architecture as the linker auto-detects it from the input object files. See: https://developer.arm.com/documentation/101754/0615/armlink-Reference/armlink-Command-line-Options/--cpu-name--armlink-pull/13968/head
parent
c51b78fbe5
commit
53cc382a96
|
@ -9,16 +9,10 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
|||
"-march=armv8-m.main"
|
||||
)
|
||||
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||
list(APPEND c_cxx_compile_options
|
||||
list(APPEND common_options
|
||||
"-mcpu=cortex-m33+nodsp"
|
||||
"-mfpu=none"
|
||||
)
|
||||
list(APPEND asm_compile_options
|
||||
"-mcpu=Cortex-M33.no_dsp.no_fp"
|
||||
)
|
||||
list(APPEND link_options
|
||||
"--cpu=Cortex-M33.no_dsp.no_fp"
|
||||
)
|
||||
endif()
|
||||
|
||||
function(mbed_set_cpu_core_definitions target)
|
||||
|
|
|
@ -9,16 +9,10 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
|||
"-march=armv8-m.main"
|
||||
)
|
||||
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||
list(APPEND c_cxx_compile_options
|
||||
list(APPEND common_options
|
||||
"-mcpu=cortex-m33+nodsp"
|
||||
"-mfpu=none"
|
||||
)
|
||||
list(APPEND asm_compile_options
|
||||
"-mcpu=Cortex-M33.no_dsp.no_fp"
|
||||
)
|
||||
list(APPEND link_options
|
||||
"--cpu=Cortex-M33.no_dsp.no_fp"
|
||||
)
|
||||
endif()
|
||||
|
||||
function(mbed_set_cpu_core_definitions target)
|
||||
|
|
Loading…
Reference in New Issue