When building, a warning message appears at the end of the build output:
...
Version: ?-20240326_165244-67c86037cf03
Preprocessing out/src/generic/armcm_link.ld
Linking out/klipper.elf
lto-wrapper: warning: using serial compilation of 4 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information
Creating hex file out/klipper.bin
...
To avoid this non-erroneous output, we set CFLAGS LTO flag with -flto=auto in the Makefile.
When building, a warning message appears at the end of the build output:
To avoid this non-erroneous output, we set
CFLAGS
LTO flag with-flto=auto
in theMakefile
.Signed-off-by: John Unland junland.foss@gmail.com