mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14401 from LDong-Arm/m33_link_fix
Workaround for Cortex-M33 Arm toochain linkingpull/14410/head
commit
0ef2024a1d
|
@ -12,6 +12,13 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
"-mcpu=cortex-m33+nodsp"
|
||||
"-mfpu=none"
|
||||
)
|
||||
list(APPEND link_options
|
||||
# Necessary as the linker does not always detect
|
||||
# the architecture from the objectfiles correctly.
|
||||
# Also, the complete flag should be "--cpu=Cortex-M33.no_dsp.no_fp"
|
||||
# but this currently conflicts with CMake's compiler test until fixed
|
||||
"--cpu=Cortex-M33.no_fp"
|
||||
)
|
||||
endif()
|
||||
|
||||
function(mbed_set_cpu_core_definitions target)
|
||||
|
|
|
@ -12,6 +12,13 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
"-mcpu=cortex-m33+nodsp"
|
||||
"-mfpu=none"
|
||||
)
|
||||
list(APPEND link_options
|
||||
# Necessary as the linker does not always detect
|
||||
# the architecture from the objectfiles correctly.
|
||||
# Also, the complete flag should be "--cpu=Cortex-M33.no_dsp.no_fp"
|
||||
# but this currently conflicts with CMake's compiler test until fixed
|
||||
"--cpu=Cortex-M33.no_fp"
|
||||
)
|
||||
endif()
|
||||
|
||||
function(mbed_set_cpu_core_definitions target)
|
||||
|
|
Loading…
Reference in New Issue