zephyr/cmake/compiler
Kumar Gala 32a48f2f55 armclang: Fix building cortex-m4 w/o floating point
When we build for a SoC that has a cortex-m4 w/o a FPU that
utilizes CMSIS headers with armclang (like mec1501modular_assy6885)
we get the following warning:

modules/hal/cmsis/CMSIS/Core/Include/core_cm4.h:93:8: warning:
   "Compiler generates FPU instructions for a device without
    an FPU (check __FPU_PRESENT)" [-W#warnings]
   #warning "Compiler generates FPU instructions for a device
   without an FPU (check __FPU_PRESENT)"

Fix the by setting -mfloat-abi=soft for such cases that don't have FPU
enabled.

Fixes #56068

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
2023-03-22 09:58:52 +01:00
..
arcmwdt toolchain: Move extra warning options to toolchain abstraction 2023-02-19 20:34:13 -05:00
armclang armclang: Fix building cortex-m4 w/o floating point 2023-03-22 09:58:52 +01:00
clang compiler/clang: ignore main-return-type warning for clang 2023-02-20 09:50:59 +01:00
gcc cmake/compiler: Limit warning flag usage to compatible toolchains 2023-03-01 19:42:32 -05:00
host-gcc cmake: provide a useful error msg when native compiler is missing 2023-02-09 22:10:16 +09:00
icx oneapi: disable use of libirc when building C++ 2023-03-16 09:16:03 +01:00
xcc
xt-clang toolchain: rename xcc-clang to xt-clang 2023-02-22 08:35:46 -05:00
compiler_features.cmake
compiler_flags_template.cmake toolchain: Move extra warning options to toolchain abstraction 2023-02-19 20:34:13 -05:00