Skip to content

Conversation

@carlescufi
Copy link
Contributor

@carlescufi carlescufi commented Dec 3, 2025

…or LTO

As described in this issue:
zephyrproject-rtos/sdk-ng#1038
`-flto=auto` fails on some (slower) Windows machines due to an issue with
the Zephyr SDK's GCC toolchain for Windows.
In order to allow users to work around this issue, introduce a new
CONFIG_LTO_SINGLE_THREADED option that switches to `-flto=1`, which
enforces a single thread when processing LTO.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit d0547b6)
Add variants of existing tests to cover this new Kconfig option.

Signed-off-by: Carles Cufi <[email protected]>
(cherry picked from commit 84a85ed)
@carlescufi carlescufi added this to the ncs-3.2.0 milestone Dec 3, 2025
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Dec 3, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#3598

Signed-off-by: Nordic Builder <[email protected]>
@carlescufi
Copy link
Contributor Author

note: compliance checks are failing due to missing cherry-picks from upstream that fix formatting. Ignore and override.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant