@@ -124,6 +124,7 @@ pub fn build(b: *std.build.Builder) !void {
124
124
const console = make .obj ("console" , "common/console.cpp" );
125
125
const sampling = make .obj ("sampling" , "common/sampling.cpp" );
126
126
const grammar_parser = make .obj ("grammar-parser" , "common/grammar-parser.cpp" );
127
+ const ngram_cache = make .obj ("ngram-cache" , "common/ngram-cache.cpp" );
127
128
const json_schema_to_grammar = make .obj ("json-schema-to-grammar" , "common/json-schema-to-grammar.cpp" );
128
129
const train = make .obj ("train" , "common/train.cpp" );
129
130
const clip = make .obj ("clip" , "examples/llava/clip.cpp" );
@@ -136,7 +137,7 @@ pub fn build(b: *std.build.Builder) !void {
136
137
_ = make .exe ("finetune" , "examples/finetune/finetune.cpp" , &.{ ggml , sgemm , ggml_alloc , ggml_backend , ggml_quants , llama , unicode , unicode_data , common , json_schema_to_grammar , buildinfo , train });
137
138
_ = make .exe ("train-text-from-scratch" , "examples/train-text-from-scratch/train-text-from-scratch.cpp" , &.{ ggml , sgemm , ggml_alloc , ggml_backend , ggml_quants , llama , unicode , unicode_data , common , json_schema_to_grammar , buildinfo , train });
138
139
139
- const server = make .exe ("server" , "examples/server/server.cpp" , &.{ ggml , sgemm , ggml_alloc , ggml_backend , ggml_quants , llama , unicode , unicode_data , common , json_schema_to_grammar , buildinfo , sampling , grammar_parser , clip , llava });
140
+ const server = make .exe ("server" , "examples/server/server.cpp" , &.{ ggml , sgemm , ggml_alloc , ggml_backend , ggml_quants , llama , unicode , unicode_data , common , json_schema_to_grammar , buildinfo , sampling , grammar_parser , ngram_cache , clip , llava });
140
141
if (server .target .isWindows ()) {
141
142
server .linkSystemLibrary ("ws2_32" );
142
143
}
0 commit comments