Update build.zig

master
Jacob 3 years ago committed by GitHub
parent 1836e941fd
commit b630099aca

@ -24,9 +24,11 @@ pub fn build(b: *Builder) void {
exe.addPackagePath("ecs", "src/ecs.zig"); exe.addPackagePath("ecs", "src/ecs.zig");
exe.linkSystemLibrary("c"); exe.linkSystemLibrary("c");
exe.emit_docs = .emit; const docs = exe;
const doc = b.step("docs", "Generate documentation."); docs.emit_docs = .emit;
doc.dependOn(&exe.step);
const doc = b.step("docs", "Generate documentation");
doc.dependOn(&docs.step);
const run_cmd = exe.run(); const run_cmd = exe.run();

Loading…
Cancel
Save