We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd0564 commit 7da998dCopy full SHA for 7da998d
Makefile
@@ -31,10 +31,15 @@ endif
31
#
32
33
# keep standard at C11 and C++11
34
-CFLAGS = -I. -O3 -DNDEBUG -std=c11 -fPIC
35
-CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC
+CFLAGS = -I. -O3 -std=c11 -fPIC
+CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC
36
LDFLAGS =
37
38
+ifndef LLAMA_NO_NDEBUG
39
+ CFLAGS += -DNDEBUG
40
+ CXXFLAGS += -DNDEBUG
41
+endif
42
+
43
# warnings
44
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-unused-function
45
CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar
0 commit comments