make : use -lfto=auto to avoid warnings and maintain perf
This commit is contained in:
parent
57c4296cf0
commit
bc28aaa8c2
1 changed files with 2 additions and 2 deletions
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.
|
# -Ofast tends to produce faster code, but may not be available for some compilers.
|
||||||
ifdef LLAMA_FAST
|
ifdef LLAMA_FAST
|
||||||
MK_CFLAGS += -Ofast -flto
|
MK_CFLAGS += -Ofast -flto=auto
|
||||||
MK_HOST_CXXFLAGS += -Ofast
|
MK_HOST_CXXFLAGS += -Ofast
|
||||||
MK_CUDA_CXXFLAGS += -O3
|
MK_CUDA_CXXFLAGS += -O3
|
||||||
else
|
else
|
||||||
MK_CFLAGS += -O3 -flto
|
MK_CFLAGS += -O3 -flto=auto
|
||||||
MK_CXXFLAGS += -O3
|
MK_CXXFLAGS += -O3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue