Skip to content

Commit 10a3cf8

Browse files
MarekPietakapi-no
authored andcommitted
applications: nrf_desktop: Fix enabling LTO
Missing dependencies in `CONFIG_LTO` default value overlay led to build issues when disabling both LTO and ISR tables local declaration using CLI arguments. Change fixes the build issues. Jira: NCSDK-32238 Signed-off-by: Marek Pieta <[email protected]>
1 parent 556f87a commit 10a3cf8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

applications/nrf_desktop/Kconfig.defaults

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ choice LIBC_IMPLEMENTATION
2222
Use minimal libc implementation to reduce memory footprint.
2323
endchoice
2424

25-
config LTO
26-
default y
27-
help
28-
nRF Desktop enables LTO to limit memory usage and improve performance.
29-
30-
config ISR_TABLES_LOCAL_DECLARATION
25+
config DESKTOP_LTO_DEFAULTS
26+
bool
3127
default y
28+
imply LTO
29+
imply ISR_TABLES_LOCAL_DECLARATION
3230
help
3331
nRF Desktop enables LTO to limit memory usage and improve performance.

0 commit comments

Comments
 (0)