From 3ab7eaa5f7afb4d432b5641d7761813d3274d25f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 3 Jun 2022 14:42:04 +0200 Subject: [PATCH] software/common: Disable LTO since does not seems to work in all cases and cause random issues. LTO will have to be properly tested before being enabled. --- litex/soc/software/common.mak | 3 --- 1 file changed, 3 deletions(-) diff --git a/litex/soc/software/common.mak b/litex/soc/software/common.mak index 79d567631..0b636d28a 100644 --- a/litex/soc/software/common.mak +++ b/litex/soc/software/common.mak @@ -59,9 +59,6 @@ COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-bu ifneq (,$(GCC_PATH)) COMMONFLAGS += -nostdinc -I$(GCC_PATH)/include -I$(GCC_PATH)/include-fixed endif -ifeq (,$(findstring musl,$(TRIPLE))) -COMMONFLAGS += -flto -endif ifneq ($(CPUFAMILY), arm) COMMONFLAGS += -fexceptions endif