Link warning when enabling LTO for native simulator based targets #68737
Labels
area: Build System
area: native port
Host native arch port (native_sim)
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
If CONFIG_LTO is set, the partial link done for native simulator based targets will produce a warning.
This warning is due to mixing objects built with and without LTO enabled, and informs the users that
LTO will be ignored.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No link warnings
Impact
twister/CI failures for samples/tests which enable LTO in their default configuration
Logs and console output
See for example this CI failure for a PR which attempted to enable LTO in the configuration of a sample:
https://github.com/zephyrproject-rtos/zephyr/actions/runs/7816163519/job/21321300058?pr=68694#step:13:897
Environment (please complete the following information):
Additional context
The feature was introduced in #66392
The text was updated successfully, but these errors were encountered: