update build.zig for recent zig changes

This commit is contained in:
Suirad 2022-05-27 23:41:44 -05:00
parent ed3d38328a
commit a78ccc8ccf

View File

@ -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);
}