Warn about LTO with arm_atsam, not ChibiOS. (#17106)

This commit is contained in:
Nick Brassel 2022-05-16 15:29:55 +10:00 committed by GitHub
parent 85289e34ae
commit 5816288926
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,8 +82,8 @@ endif
# -Wall...: warning level # -Wall...: warning level
# -Wa,...: tell GCC to pass this to the assembler. # -Wa,...: tell GCC to pass this to the assembler.
ifeq ($(strip $(LTO_ENABLE)), yes) ifeq ($(strip $(LTO_ENABLE)), yes)
ifeq ($(PLATFORM),CHIBIOS) ifeq ($(PLATFORM),ARM_ATSAM)
$(info Enabling LTO on ChibiOS-targeting boards is known to have a high likelihood of failure.) $(info Enabling LTO on arm_atsam-targeting boards is known to have a high likelihood of failure.)
$(info If unsure, set LTO_ENABLE = no.) $(info If unsure, set LTO_ENABLE = no.)
endif endif
CDEFS += -flto CDEFS += -flto