Skip to content

Commit 35fd374

Browse files
committed
fix zig build
1 parent c02c52e commit 35fd374

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ pub fn build(b: *std.build.Builder) !void {
131131
const sampling = make.obj("sampling", "common/sampling.cpp");
132132
const grammar_parser = make.obj("grammar-parser", "common/grammar-parser.cpp");
133133
const train = make.obj("train", "common/train.cpp");
134+
const clip = make.obj("clip", "examples/llava/clip.cpp");
134135

135136
_ = make.exe("main", "examples/main/main.cpp", &.{ ggml, ggml_alloc, ggml_backend, llama, common, sampling, console, grammar_parser });
136137
_ = make.exe("quantize", "examples/quantize/quantize.cpp", &.{ ggml, ggml_alloc, ggml_backend, llama, common });
@@ -139,7 +140,7 @@ pub fn build(b: *std.build.Builder) !void {
139140
_ = make.exe("finetune", "examples/finetune/finetune.cpp", &.{ ggml, ggml_alloc, ggml_backend, llama, common, train });
140141
_ = make.exe("train-text-from-scratch", "examples/train-text-from-scratch/train-text-from-scratch.cpp", &.{ ggml, ggml_alloc, ggml_backend, llama, common, train });
141142

142-
const server = make.exe("server", "examples/server/server.cpp", &.{ ggml, ggml_alloc, ggml_backend, llama, common, sampling, grammar_parser });
143+
const server = make.exe("server", "examples/server/server.cpp", &.{ ggml, ggml_alloc, ggml_backend, llama, common, sampling, grammar_parser, clip });
143144
if (server.target.isWindows()) {
144145
server.linkSystemLibrary("ws2_32");
145146
}

0 commit comments

Comments
 (0)