@@ -110,15 +110,16 @@ pub fn build(b: *std.build.Builder) !void {
110
110
const llama = make .obj ("llama" , "llama.cpp" );
111
111
const common = make .obj ("common" , "common/common.cpp" );
112
112
const console = make .obj ("common" , "common/console.cpp" );
113
+ const sampling = make .obj ("common" , "common/sampling.cpp" );
113
114
const grammar_parser = make .obj ("grammar-parser" , "common/grammar-parser.cpp" );
114
115
115
- _ = make .exe ("main" , "examples/main/main.cpp" , &.{ ggml , ggml_alloc , llama , common , console , grammar_parser });
116
+ _ = make .exe ("main" , "examples/main/main.cpp" , &.{ ggml , ggml_alloc , llama , common , sampling , console , grammar_parser });
116
117
_ = make .exe ("quantize" , "examples/quantize/quantize.cpp" , &.{ ggml , ggml_alloc , llama , common });
117
118
_ = make .exe ("perplexity" , "examples/perplexity/perplexity.cpp" , &.{ ggml , ggml_alloc , llama , common });
118
119
_ = make .exe ("embedding" , "examples/embedding/embedding.cpp" , &.{ ggml , ggml_alloc , llama , common });
119
120
_ = make .exe ("train-text-from-scratch" , "examples/train-text-from-scratch/train-text-from-scratch.cpp" , &.{ ggml , ggml_alloc , llama , common });
120
121
121
- const server = make .exe ("server" , "examples/server/server.cpp" , &.{ ggml , ggml_alloc , llama , common , grammar_parser });
122
+ const server = make .exe ("server" , "examples/server/server.cpp" , &.{ ggml , ggml_alloc , llama , common , sampling , grammar_parser });
122
123
if (server .target .isWindows ()) {
123
124
server .linkSystemLibrary ("ws2_32" );
124
125
}
0 commit comments