From 91da5bd8b2e6e9000e2a98f8ba2fe90ebe629bc1 Mon Sep 17 00:00:00 2001 From: 18 <111544899+eightween@users.noreply.github.com> Date: Sat, 16 Dec 2023 15:21:39 -0500 Subject: [PATCH] replace stub.c with b.addWriteFiles().add("empty.c", "") (#9) --- build.zig | 2 +- stub.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 stub.c 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.