mirror of https://github.com/ARMmbed/mbed-os.git
CMake versions 3.20 and below always add compiler and linker flags based on `CMAKE_SYSTEM_PROCESSOR`, for example `--cpu=Cortex-M33`. This sometimes overrides flags we set in tools/cmake/cores/*.cmake and results in link failure or unbootable binaries. To workaround this, we added more linker flags to "counter" what CMake automatically adds. From CMake 3.21 onwards, CMake by default does not add flags to armclang anymore, and it fully relies on projects to set all flags. In this case we do not need to set `CMAKE_SYSTEM_PROCESSOR` or use workarounds anymore. We still turn on workarounds when an older version of CMake (3.19 and 3.20) is used, but in the future we might require users to have at least CMake 3.21. |
||
---|---|---|
.. | ||
Cortex-A.cmake | ||
Cortex-M0+.cmake | ||
Cortex-M0.cmake | ||
Cortex-M1.cmake | ||
Cortex-M3.cmake | ||
Cortex-M4.cmake | ||
Cortex-M4F.cmake | ||
Cortex-M7.cmake | ||
Cortex-M7F.cmake | ||
Cortex-M7FD.cmake | ||
Cortex-M23-NS.cmake | ||
Cortex-M23.cmake | ||
Cortex-M33-NS.cmake | ||
Cortex-M33.cmake | ||
Cortex-M33F-NS.cmake | ||
Cortex-M33F.cmake | ||
Cortex-M33FE-NS.cmake | ||
Cortex-M33FE.cmake | ||
Cortex-M55.cmake |