diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -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); - } |
