From 12e69752d3e82b5e48a53f279ae967f9d8c0edb1 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Tue, 8 Oct 2024 22:14:56 -0700 Subject: [PATCH] build: fix "error: the linker needs one or more objects to link" Signed-off-by: Stephen Gutekanst --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 360a185b..6c04727e 100644 --- a/build.zig +++ b/build.zig @@ -237,6 +237,7 @@ pub fn build(b: *std.Build) !void { if (want_libs) { const lib = b.addStaticLibrary(.{ .name = "mach-sysgpu", + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, });