build: fix "error: the linker needs one or more objects to link"

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-10-08 22:14:56 -07:00
parent e3a124f2b1
commit 12e69752d3

View file

@ -237,6 +237,7 @@ pub fn build(b: *std.Build) !void {
if (want_libs) { if (want_libs) {
const lib = b.addStaticLibrary(.{ const lib = b.addStaticLibrary(.{
.name = "mach-sysgpu", .name = "mach-sysgpu",
.root_source_file = b.path("src/main.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });