replace stub.c with b.addWriteFiles().add("empty.c", "") (#9)
This commit is contained in:
parent
1feb2d8418
commit
91da5bd8b2
2 changed files with 1 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ pub fn build(b: *std.Build) void {
|
||||||
|
|
||||||
const lib = b.addStaticLibrary(.{
|
const lib = b.addStaticLibrary(.{
|
||||||
.name = "vulkan-headers",
|
.name = "vulkan-headers",
|
||||||
.root_source_file = .{ .path = "stub.c" },
|
.root_source_file = .{ .path = b.addWriteFiles().add("empty.c", "") },
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
2
stub.c
2
stub.c
|
|
@ -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.
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue