From e3e039ba82260c3ced451a504e1ac50cb1955add Mon Sep 17 00:00:00 2001 From: Justin Ryan Hurst Date: Tue, 15 Feb 2022 21:42:36 -0600 Subject: [PATCH] fix: Fix add package for zig 0.9.0 and master 0b22 --- zig-ecs/build.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zig-ecs/build.zig b/zig-ecs/build.zig index c7798b7..fc1e2c7 100644 --- a/zig-ecs/build.zig +++ b/zig-ecs/build.zig @@ -23,14 +23,13 @@ pub fn build(b: *Builder) void { exe.setOutputDir(std.fs.path.join(b.allocator, &[_][]const u8{ b.cache_root, "bin" }) catch unreachable); exe.addPackagePath("ecs", "src/ecs.zig"); exe.linkSystemLibrary("c"); - + const docs = exe; docs.emit_docs = .emit; const doc = b.step("docs", "Generate documentation"); doc.dependOn(&docs.step); - const run_cmd = exe.run(); const exe_step = b.step(name, b.fmt("run {s}.zig", .{name})); exe_step.dependOn(&run_cmd.step); @@ -65,7 +64,7 @@ pub const LibType = enum(i32) { pub fn getPackage(comptime prefix_path: []const u8) std.build.Pkg { return .{ .name = "ecs", - .path = prefix_path ++ "src/ecs.zig", + .path = .{ .path = prefix_path ++ "src/ecs.zig" }, }; }