summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig17
1 files changed, 7 insertions, 10 deletions
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);
-
}