File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
12
12
"-mcpu=cortex-m33+nodsp"
13
13
"-mfpu=none"
14
14
)
15
+ list (APPEND link_options
16
+ # Necessary as the linker does not always detect
17
+ # the architecture from the objectfiles correctly.
18
+ # Also, the complete flag should be "--cpu=Cortex-M33.no_dsp.no_fp"
19
+ # but this currently conflicts with CMake's compiler test until fixed
20
+ "--cpu=Cortex-M33.no_fp"
21
+ )
15
22
endif ()
16
23
17
24
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
12
12
"-mcpu=cortex-m33+nodsp"
13
13
"-mfpu=none"
14
14
)
15
+ list (APPEND link_options
16
+ # Necessary as the linker does not always detect
17
+ # the architecture from the objectfiles correctly.
18
+ # Also, the complete flag should be "--cpu=Cortex-M33.no_dsp.no_fp"
19
+ # but this currently conflicts with CMake's compiler test until fixed
20
+ "--cpu=Cortex-M33.no_fp"
21
+ )
15
22
endif ()
16
23
17
24
function (mbed_set_cpu_core_definitions target )
You can’t perform that action at this time.
0 commit comments