Skip to content

Commit c7cbd01

Browse files
committed
update build.zig
1 parent 436fa6c commit c7cbd01

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

build.zig

+12-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,18 @@ pub fn build(b: *std.Build) !void {
175175
.link_lib_cpp = false,
176176
.flags = cflags.items,
177177
});
178-
try objs.appendSlice(&.{ llama, ggml, common, console, sampling, grammar_parser, build_info, ggml_alloc, ggml_backend, ggml_quants });
178+
const unicode = buildObj(.{
179+
.b = b,
180+
.name = "unicode",
181+
.target = target,
182+
.optimize = optimize,
183+
.sources = &.{"llama.cpp/unicode.cpp"},
184+
.include_paths = &include_paths,
185+
.link_lib_c = false,
186+
.link_lib_cpp = true,
187+
.flags = cxxflags.items,
188+
});
189+
try objs.appendSlice(&.{ llama, ggml, common, console, sampling, grammar_parser, build_info, ggml_alloc, ggml_backend, ggml_quants, unicode });
179190

180191
if (target.result.os.tag == .macos) {
181192
const ggml_metal = buildObj(.{

llama.cpp

0 commit comments

Comments
 (0)