From 90e7ac5b453272e59a4f7403549990d7aae6cf55 Mon Sep 17 00:00:00 2001 From: samposa_1337 Date: Sun, 8 Nov 2026 13:49:40 +0300 Subject: full rewrite in 17.1 zig --- build.zig | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 6c1a770..c5c4021 100644 --- a/build.zig +++ b/build.zig @@ -5,10 +5,12 @@ pub fn build(b: *std.Build) void { const optimize = b.standardOptimizeOption(.{}); const exe = b.addExecutable(.{ - .name = "Ezfetch", - .root_source_file = b.path("src/main.zig"), - .target = target, - .optimize = optimize, + .name = "ezfetch", + .root_module = b.createModule(.{ + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = optimize, + }), }); b.installArtifact(exe); @@ -16,11 +18,6 @@ pub fn build(b: *std.Build) void { const run_cmd = b.addRunArtifact(exe); run_cmd.step.dependOn(b.getInstallStep()); - if (b.args) |args| { - run_cmd.addArgs(args); - } - - const run_step = b.step("run", "Run the app"); + const run_step = b.step("run", "Run ezfetch"); run_step.dependOn(&run_cmd.step); - } -- cgit v1.3