Skip to content

Commit 62b5401

Browse files
committed
Chibios: disable LTO (link-time optimisation).
With LTO enabled, sometimes things fail for mysterious reasons (e.g. bootloader jump on WF with LEDs enabled), just because the linker optimisation is too aggressive.
1 parent 325c09d commit 62b5401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/chibios/chibios.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ endif
3535

3636
# Enable this if you want link time optimizations (LTO)
3737
ifeq ($(USE_LTO),)
38-
USE_LTO = yes
38+
USE_LTO = no
3939
endif
4040

4141
# If enabled, this option allows to compile the application in THUMB mode.

0 commit comments

Comments
 (0)