From 06cfc630360165d76889efdaeeda849b16266b08 Mon Sep 17 00:00:00 2001 From: cozis Date: Sat, 23 May 2026 17:46:38 +0200 Subject: [PATCH] build: Add read_file.zig to the build step --- build.zig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.zig b/build.zig index 538156e..3a07ca7 100644 --- a/build.zig +++ b/build.zig @@ -43,4 +43,16 @@ pub fn build(b: *std.Build) void { open_file_exe.root_module.addImport("zigmulator", zigmulator); const install_open_file_exe = b.addInstallArtifact(open_file_exe, .{}); examples_step.dependOn(&install_open_file_exe.step); + + const read_file_exe = b.addExecutable(.{ + .name = "read_file", + .root_module = b.createModule(.{ + .root_source_file = b.path("examples/read_file.zig"), + .target = target, + .optimize = optimize, + }), + }); + read_file_exe.root_module.addImport("zigmulator", zigmulator); + const install_read_file_exe = b.addInstallArtifact(read_file_exe, .{}); + examples_step.dependOn(&install_read_file_exe.step); }