From b630099aca2d34b2b8a0782db19ae95d2a8c8b97 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sun, 16 Jan 2022 23:55:13 +0000 Subject: [PATCH] Update build.zig --- zig-ecs/build.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zig-ecs/build.zig b/zig-ecs/build.zig index 3a37c3b..c7798b7 100644 --- a/zig-ecs/build.zig +++ b/zig-ecs/build.zig @@ -24,9 +24,11 @@ pub fn build(b: *Builder) void { exe.addPackagePath("ecs", "src/ecs.zig"); exe.linkSystemLibrary("c"); - exe.emit_docs = .emit; - const doc = b.step("docs", "Generate documentation."); - doc.dependOn(&exe.step); + const docs = exe; + docs.emit_docs = .emit; + + const doc = b.step("docs", "Generate documentation"); + doc.dependOn(&docs.step); const run_cmd = exe.run();