Skip to content

Commit

Permalink
Warn about LTO with arm_atsam, not ChibiOS. (#17106)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc authored May 16, 2022
1 parent 85289e3 commit 5816288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builddefs/common_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ endif
# -Wall...: warning level
# -Wa,...: tell GCC to pass this to the assembler.
ifeq ($(strip $(LTO_ENABLE)), yes)
ifeq ($(PLATFORM),CHIBIOS)
$(info Enabling LTO on ChibiOS-targeting boards is known to have a high likelihood of failure.)
ifeq ($(PLATFORM),ARM_ATSAM)
$(info Enabling LTO on arm_atsam-targeting boards is known to have a high likelihood of failure.)
$(info If unsure, set LTO_ENABLE = no.)
endif
CDEFS += -flto
Expand Down

0 comments on commit 5816288

Please sign in to comment.