only:windows compilation seems broken fix #5703

documenting the problem
This commit is contained in:
rusefillc 2023-11-09 19:18:40 -05:00
parent e3c787419c
commit 579644fb96
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ endif
# Enable this if you want link time optimizations (LTO)
ifeq ($(USE_LTO),)
# ChibiOS has not yet migrated to gcc12 syntax of '-flto' thus some weird code here
#
# drama: in case of 'syntax error near unexpected token' on Windows either comment out the two lines below
# or just more your GCC into a folder without spaced in the path like 'C:\stuff\arm-gcc-12.2'
#
USE_LTO = no
USE_OPT += -flto=auto
endif