mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 19:50:17 +00:00
make : use -lfto=auto to avoid warnings and maintain perf
This commit is contained in:
parent
57c4296cf0
commit
bc28aaa8c2
4
Makefile
4
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user