From a78ccc8ccf2cd6f245573bff31d9cf275999083b Mon Sep 17 00:00:00 2001 From: Suirad Date: Fri, 27 May 2022 23:41:44 -0500 Subject: [PATCH] update build.zig for recent zig changes --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index fd47281..327e924 100644 --- a/build.zig +++ b/build.zig @@ -22,8 +22,8 @@ pub fn build(b: *std.build.Builder) !void { b.option(std.log.Level, "log_level", "The Log Level to be used.") orelse .info, ); - exe.addPackage(.{ .name = "known-folders", .path = .{ .path = "src/known-folders/known-folders.zig" } }); - exe.addPackage(.{ .name = "zinput", .path = .{ .path = "src/zinput/src/main.zig" } }); + exe.addPackage(.{ .name = "known-folders", .source = .{ .path = "src/known-folders/known-folders.zig" } }); + exe.addPackage(.{ .name = "zinput", .source = .{ .path = "src/zinput/src/main.zig" } }); exe.setTarget(target); exe.setBuildMode(mode); @@ -39,7 +39,7 @@ pub fn build(b: *std.build.Builder) !void { test_step.dependOn(&unit_tests.step); var session_tests = b.addTest("tests/sessions.zig"); - session_tests.addPackage(.{ .name = "header", .path = .{ .path = "src/header.zig" } }); + session_tests.addPackage(.{ .name = "header", .source = .{ .path = "src/header.zig" } }); session_tests.setBuildMode(.Debug); test_step.dependOn(&session_tests.step); }