kiloz

Following through https://viewsourcecode.org/snaptoken/kilo/index.html in Zig
git clone git://code.mfashby.net:/kiloz
Log | Files | Refs | README

commit aa699fd69a325c4f8a025b0ad19d9d7c57412fcf
parent 8818b40b5d10f32db1b6454bb8a78a96c7685938
Author: Martin Ashby <martin@ashbysoft.com>
Date:   Sat, 27 Jan 2024 22:02:16 +0000

Buildfix for latest zig master

Diffstat:
Mbuild.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.zig b/build.zig @@ -22,10 +22,10 @@ pub fn build(b: *std.Build) void { }); b.installArtifact(exe); - + var opts = b.addOptions(); opts.addOption([]const u8, "version", "0.0.0"); // TODO figure out how to get this from build.zig.zon - exe.addOptions("options", opts); + exe.root_module.addOptions("options", opts); const run_cmd = b.addRunArtifact(exe);