diff options
| author | samposa_1337 <lososhome1@gmail.com> | 2026-11-08 13:49:40 +0300 |
|---|---|---|
| committer | samposa_1337 <lososhome1@gmail.com> | 2026-11-08 13:49:40 +0300 |
| commit | 90e7ac5b453272e59a4f7403549990d7aae6cf55 (patch) | |
| tree | 50391ad66a0c8cb4402ac7f1bf8ca8edf65524ec /build.zig | |
| parent | 6d839bc2e5d70c064d4aa2ef3a3f937c88d97a57 (diff) | |
full rewrite in 17.1 zig
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); - } |
