zephyr/lib/libc/picolibc
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
..
assert.c libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00
cbprintf.c libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00
chk_fail.c libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00
CMakeLists.txt picolibc: Replace hard coded -fno-lto flag 2025-01-27 13:24:52 +01:00
errno_wrap.c libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00
exit.c libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00
Kconfig lib/libc: picolibc: select its source with Kconfig choice 2024-07-09 17:29:12 -04:00
locks.c libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00
picolibc-hooks.h libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00
stdio.c libc/picolibc: Split hooks into separate files 2024-11-16 13:50:16 -05:00