Skip to content

Commit 5816288

Browse files
authored
Warn about LTO with arm_atsam, not ChibiOS. (#17106)
1 parent 85289e3 commit 5816288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builddefs/common_rules.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ endif
8282
# -Wall...: warning level
8383
# -Wa,...: tell GCC to pass this to the assembler.
8484
ifeq ($(strip $(LTO_ENABLE)), yes)
85-
ifeq ($(PLATFORM),CHIBIOS)
86-
$(info Enabling LTO on ChibiOS-targeting boards is known to have a high likelihood of failure.)
85+
ifeq ($(PLATFORM),ARM_ATSAM)
86+
$(info Enabling LTO on arm_atsam-targeting boards is known to have a high likelihood of failure.)
8787
$(info If unsure, set LTO_ENABLE = no.)
8888
endif
8989
CDEFS += -flto

0 commit comments

Comments
 (0)