authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 14:47:18 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-01 14:47:18 -07:00
logf28c19ea0856313bbd67a61fb218a065559c44b5
tree69827ca93b7f2bdc68f2717b19701fdd76f72127
parent0e542d4022c10ce692b14a2523007b565109fe9a
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.15.2


1 files changed, 13 insertions(+), 8 deletions(-)

build.zig+13-8
......@@ -3,14 +3,17 @@ const deps = @import("./deps.zig");
33
44pub fn build(b: *std.Build) void {
55 const target = b.standardTargetOptions(.{});
6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
6 const mode = b.option(std.builtin.OptimizeMode, "mode", "") orelse .Debug;
77 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
88
9 const lib = b.addStaticLibrary(.{
9 const lib = b.addLibrary(.{
10 .linkage = .static,
1011 .name = "icu",
11 .root_source_file = b.path("src/main.zig"),
12 .target = target,
13 .optimize = mode,
12 .root_module = b.createModule(.{
13 .root_source_file = b.path("src/main.zig"),
14 .target = target,
15 .optimize = mode,
16 }),
1417 });
1518 deps.addAllTo(lib);
1619 lib.use_llvm = !disable_llvm;
......@@ -24,9 +27,11 @@ pub fn build(b: *std.Build) void {
2427 // });
2528
2629 const tests = b.addTest(.{
27 .root_source_file = b.path("test.zig"),
28 .target = target,
29 .optimize = mode,
30 .root_module = b.createModule(.{
31 .root_source_file = b.path("test.zig"),
32 .target = target,
33 .optimize = mode,
34 }),
3035 });
3136 deps.addAllTo(tests);
3237 tests.use_llvm = !disable_llvm;