make : fix missing -O3 (#8143)
This commit is contained in:
parent
f2d48fffde
commit
c7ab7b612c
1 changed files with 4 additions and 7 deletions
9
Makefile
9
Makefile
|
@ -148,12 +148,6 @@ ifndef UNAME_M
|
||||||
UNAME_M := $(shell uname -m)
|
UNAME_M := $(shell uname -m)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MK_CFLAGS += -O3
|
|
||||||
MK_CXXFLAGS += -O3
|
|
||||||
ifndef LLAMA_DEBUG
|
|
||||||
MK_NVCCFLAGS += -O3
|
|
||||||
endif # LLAMA_DEBUG
|
|
||||||
|
|
||||||
# In GNU make default CXX is g++ instead of c++. Let's fix that so that users
|
# In GNU make default CXX is g++ instead of c++. Let's fix that so that users
|
||||||
# of non-gcc compilers don't have to provide g++ alias or wrapper.
|
# of non-gcc compilers don't have to provide g++ alias or wrapper.
|
||||||
DEFCC := cc
|
DEFCC := cc
|
||||||
|
@ -313,6 +307,9 @@ ifdef LLAMA_DEBUG
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
MK_CPPFLAGS += -DNDEBUG
|
MK_CPPFLAGS += -DNDEBUG
|
||||||
|
MK_CFLAGS += -O3
|
||||||
|
MK_CXXFLAGS += -O3
|
||||||
|
MK_NVCCFLAGS += -O3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef LLAMA_SANITIZE_THREAD
|
ifdef LLAMA_SANITIZE_THREAD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue