sylveos

Toy Operating System
Log | Files | Refs

commit 242a75221bb06f3b5703da9bd4012a54d8e07836
parent c77975b17de56cc8e316243c27d98880f2921cc6
Author: Sylvia Ivory <git@sivory.net>
Date:   Fri, 16 Jan 2026 14:48:52 -0800

Fix pi import

Diffstat:
Mtests/gpio.zig | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/gpio.zig b/tests/gpio.zig @@ -13,6 +13,12 @@ pub fn build(b: *std.Build) !void { if (entry.kind != .file) continue; if (!std.mem.endsWith(u8, entry.name, ".c")) continue; + const pi = b.createModule(.{ + .root_source_file = b.path("fake-pi/pi.zig"), + .target = b.graph.host, + .optimize = .ReleaseSafe, + }); + // C files const runner = b.createModule(.{ .root_source_file = b.path("src/test-runner.zig"), @@ -22,6 +28,7 @@ pub fn build(b: *std.Build) !void { }); runner.addCSourceFile(.{ .file = b.path(b.pathJoin(&.{ "tests/gpio", entry.name })) }); runner.addIncludePath(b.path("include/")); + runner.addImport("pi", pi); // TODO; this is duplicated code const fake_pi = b.createModule(.{