From 192fbe713e2ead372bcf283e6965043cd72b1edf Mon Sep 17 00:00:00 2001 From: Matt Knight Date: Thu, 13 Apr 2023 22:31:42 -0700 Subject: [PATCH] fixed build.zig (#8) --- tools/uf2/build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/uf2/build.zig b/tools/uf2/build.zig index f6ce510..2795742 100644 --- a/tools/uf2/build.zig +++ b/tools/uf2/build.zig @@ -10,7 +10,7 @@ pub fn build(b: *std.build.Builder) void { .target = target, .optimize = optimize, }); - lib.install(); + b.installArtifact(lib); const main_tests = b.addTest(.{ .root_source_file = .{ .path = "src/main.zig" }, @@ -23,7 +23,7 @@ pub fn build(b: *std.build.Builder) void { .name = "gen", .root_source_file = .{ .path = "src/gen.zig" }, }); - const gen_run_step = gen.run(); + const gen_run_step = b.addRunArtifact(gen); const gen_step = b.step("gen", "Generate family id enum"); gen_step.dependOn(&gen_run_step.step); @@ -31,5 +31,5 @@ pub fn build(b: *std.build.Builder) void { .name = "example", .root_source_file = .{ .path = "src/example.zig" }, }); - exe.install(); + b.installArtifact(exe); }