We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2d48ff commit c7ab7b6Copy full SHA for c7ab7b6
Makefile
@@ -148,12 +148,6 @@ ifndef UNAME_M
148
UNAME_M := $(shell uname -m)
149
endif
150
151
-MK_CFLAGS += -O3
152
-MK_CXXFLAGS += -O3
153
-ifndef LLAMA_DEBUG
154
-MK_NVCCFLAGS += -O3
155
-endif # LLAMA_DEBUG
156
-
157
# In GNU make default CXX is g++ instead of c++. Let's fix that so that users
158
# of non-gcc compilers don't have to provide g++ alias or wrapper.
159
DEFCC := cc
@@ -312,7 +306,10 @@ ifdef LLAMA_DEBUG
312
306
MK_CPPFLAGS += -D_GLIBCXX_ASSERTIONS
313
307
314
308
else
315
- MK_CPPFLAGS += -DNDEBUG
309
+ MK_CPPFLAGS += -DNDEBUG
310
+ MK_CFLAGS += -O3
311
+ MK_CXXFLAGS += -O3
+ MK_NVCCFLAGS += -O3
316
317
318
ifdef LLAMA_SANITIZE_THREAD
0 commit comments