From bc28aaa8c20b81d6d2da56f954854a87ac6d2219 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 30 Oct 2023 16:00:53 +0200 Subject: [PATCH] make : use -lfto=auto to avoid warnings and maintain perf --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2a2ac8505..c443cac86 100644 --- a/Makefile +++ b/Makefile @@ -120,11 +120,11 @@ MK_CXXFLAGS = -std=c++11 -fPIC # -Ofast tends to produce faster code, but may not be available for some compilers. ifdef LLAMA_FAST -MK_CFLAGS += -Ofast -flto +MK_CFLAGS += -Ofast -flto=auto MK_HOST_CXXFLAGS += -Ofast MK_CUDA_CXXFLAGS += -O3 else -MK_CFLAGS += -O3 -flto +MK_CFLAGS += -O3 -flto=auto MK_CXXFLAGS += -O3 endif