From b7ba91d664737241df27e980c501038005826b53 Mon Sep 17 00:00:00 2001 From: utox39 Date: Mon, 25 Aug 2025 01:40:43 +0200 Subject: [PATCH] build: update build.zig --- build.zig | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/build.zig b/build.zig index c39d595..8093504 100644 --- a/build.zig +++ b/build.zig @@ -17,9 +17,11 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "zigfetch", - .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, + }), }); if (target.result.os.tag == .macos) { @@ -61,9 +63,11 @@ pub fn build(b: *std.Build) void { run_step.dependOn(&run_cmd.step); const exe_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_exe_unit_tests = b.addRunArtifact(exe_unit_tests);