diff --git a/build.zig b/build.zig index 3ab1d19..9081c8b 100644 --- a/build.zig +++ b/build.zig @@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void { const lib = b.addStaticLibrary(.{ .name = "vulkan-headers", - .root_source_file = .{ .path = "stub.c" }, + .root_source_file = .{ .path = b.addWriteFiles().add("empty.c", "") }, .target = target, .optimize = optimize, }); diff --git a/stub.c b/stub.c deleted file mode 100644 index 2c77101..0000000 --- a/stub.c +++ /dev/null @@ -1,2 +0,0 @@ -// This file exists for the Zig build sytem to work. -// In order to "build" this library, there need to be some objects to link.