File tree 2 files changed +18
-7
lines changed
2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 42
42
#
43
43
44
44
# keep standard at C11 and C++11
45
- CFLAGS = -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -DNDEBUG -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
46
- CXXFLAGS = -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
45
+ CFLAGS =
46
+ CXXFLAGS =
47
+ ifdef KCPP_DEBUG
48
+ CFLAGS = -g -O0
49
+ CXXFLAGS = -g -O0
50
+ endif
51
+ CFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
52
+ CXXFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
53
+ ifndef KCPP_DEBUG
54
+ CFLAGS += -DNDEBUG -s
55
+ CXXFLAGS += -DNDEBUG -s
56
+ endif
57
+
58
+ # lets try enabling everything
59
+ CFLAGS += -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
60
+ CXXFLAGS += -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
61
+
47
62
LDFLAGS =
48
63
FASTCFLAGS = $(subst -O3,-Ofast,$(CFLAGS ) )
49
64
FASTCXXFLAGS = $(subst -O3,-Ofast,$(CXXFLAGS ) )
@@ -69,10 +84,6 @@ OBJS_FULL += ggml-alloc.o ggml-aarch64.o ggml-quants.o unicode.o unicode-data.o
69
84
OBJS_SIMPLE += ggml-alloc.o ggml-aarch64.o ggml-quants_noavx2.o unicode.o unicode-data.o sgemm_noavx2.o common.o sampling.o grammar-parser.o
70
85
OBJS_FAILSAFE += ggml-alloc.o ggml-aarch64.o ggml-quants_failsafe.o unicode.o unicode-data.o sgemm_failsafe.o common.o sampling.o grammar-parser.o
71
86
72
- # lets try enabling everything
73
- CFLAGS += -pthread -s -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
74
- CXXFLAGS += -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
75
-
76
87
# OS specific
77
88
# TODO: support Windows
78
89
ifeq ($(UNAME_S ) ,Linux)
Original file line number Diff line number Diff line change @@ -1108,7 +1108,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
1108
1108
}
1109
1109
}
1110
1110
1111
- clip_ctx * new_clip = new clip_ctx;
1111
+ clip_ctx * new_clip = new clip_ctx{} ;
1112
1112
1113
1113
// update projector type
1114
1114
{
You can’t perform that action at this time.
0 commit comments