@@ -127,17 +127,18 @@ pub fn build(b: *std.build.Builder) !void {
127
127
const llama = make .obj ("llama" , "llama.cpp" );
128
128
const common = make .obj ("common" , "common/common.cpp" );
129
129
const console = make .obj ("console" , "common/console.cpp" );
130
+ const sampling = make .obj ("sampling" , "common/sampling.cpp" );
130
131
const grammar_parser = make .obj ("grammar-parser" , "common/grammar-parser.cpp" );
131
132
const train = make .obj ("train" , "common/train.cpp" );
132
133
133
- _ = make .exe ("main" , "examples/main/main.cpp" , &.{ ggml , ggml_alloc , llama , common , console , grammar_parser });
134
+ _ = make .exe ("main" , "examples/main/main.cpp" , &.{ ggml , ggml_alloc , llama , common , sampling , console , grammar_parser });
134
135
_ = make .exe ("quantize" , "examples/quantize/quantize.cpp" , &.{ ggml , ggml_alloc , llama , common });
135
136
_ = make .exe ("perplexity" , "examples/perplexity/perplexity.cpp" , &.{ ggml , ggml_alloc , llama , common });
136
137
_ = make .exe ("embedding" , "examples/embedding/embedding.cpp" , &.{ ggml , ggml_alloc , llama , common });
137
138
_ = make .exe ("finetune" , "examples/finetune/finetune.cpp" , &.{ ggml , ggml_alloc , llama , common , train });
138
139
_ = make .exe ("train-text-from-scratch" , "examples/train-text-from-scratch/train-text-from-scratch.cpp" , &.{ ggml , ggml_alloc , llama , common , train });
139
140
140
- const server = make .exe ("server" , "examples/server/server.cpp" , &.{ ggml , ggml_alloc , llama , common , grammar_parser });
141
+ const server = make .exe ("server" , "examples/server/server.cpp" , &.{ ggml , ggml_alloc , llama , common , sampling , grammar_parser });
141
142
if (server .target .isWindows ()) {
142
143
server .linkSystemLibrary ("ws2_32" );
143
144
}
0 commit comments