diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-25 20:05:19 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2025-08-25 20:05:19 +0200 |
commit | 74c8e2baf22c62b8015daf1b86e58fa4bf738bb4 (patch) | |
tree | 3257f5ea40641e07515e1d2b56105b7728a3b274 /build.zig | |
parent | 41a94a7f354a72af807e25607de65ee98f3d1b63 (diff) |
Update to Zig 0.15.1.
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -6,9 +6,11 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "dose", - .root_source_file = b.path("src/main.zig"), - .target = target, - .optimize = optimize, + .root_module = b.createModule(.{ + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = optimize, + }), }); // Add cross-platform terminal support @@ -33,9 +35,11 @@ pub fn build(b: *std.Build) void { run_step.dependOn(&run_cmd.step); const unit_tests = b.addTest(.{ - .root_source_file = b.path("src/main.zig"), - .target = target, - .optimize = optimize, + .root_module = b.createModule(.{ + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = optimize, + }), }); const run_unit_tests = b.addRunArtifact(unit_tests); |