zephyr/lib/libc
Joel Holdsworth 1b399d78fc picolibc: Replace hard coded -fno-lto flag
GCC versions before 4.5 do not have the -fno-lto flag and give an error if
it is used. The flag may also be unavailable on various other non-GCC
compilers.

Previously, the picolibc CMakeList.txt script assumed that the flag was
available, and hard-coded it as an addition to the compiler flags.

This patch improves compatibility by making use of the already existing
"prohibit_lto" CMake target compiler property, which is set to the
appropriate flag to disable LTO support, or unset if the compiler lacks
such an option.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
2025-01-27 13:24:52 +01:00
..
arcmwdt libc: arcmwdt: increase the number of preallocated locks 2024-12-03 02:37:16 +01:00
armstdc Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
common lib: libc: common: time: Add toolchain include 2024-09-26 13:31:03 -05:00
minimal lib: libc: select POSIX_C_LANG_SUPPORT_R 2024-12-10 08:06:25 +01:00
newlib newlib: correct signature of _open() for xtensa 2025-01-05 09:56:54 +01:00
picolibc picolibc: Replace hard coded -fno-lto flag 2025-01-27 13:24:52 +01:00
CMakeLists.txt
Kconfig lib: libc: newlib: Don't replace newlib libc time _r functions 2024-12-10 08:06:25 +01:00