From 7429d84d0054a8c072b1a1bb363ebd9c40a2f065 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Mon, 1 Jul 2024 23:28:01 +0200 Subject: [PATCH] Enable flto=auto in build --- platforms/shared/desktop/makefiles/Makefile.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/shared/desktop/makefiles/Makefile.common b/platforms/shared/desktop/makefiles/Makefile.common index a7d815c..a17eb5c 100644 --- a/platforms/shared/desktop/makefiles/Makefile.common +++ b/platforms/shared/desktop/makefiles/Makefile.common @@ -33,8 +33,8 @@ DEBUG ?= 0 ifeq ($(DEBUG), 1) CPPFLAGS +=-DDEBUG -g3 else - CPPFLAGS +=-DNDEBUG -O3 -flto - LDFLAGS += -flto + CPPFLAGS +=-DNDEBUG -O3 -flto=auto + LDFLAGS += -O3 -flto=auto endif SANITIZE ?= 0