Skip to content

Commit 800b308

Browse files
committed
update to zig 0.15.1
1 parent 7d466b2 commit 800b308

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ packaged for the [Zig](https://ziglang.org/) build system.
88
1. Add `VulkanMemoryAllocator` to the dependency list in `build.zig.zon`:
99

1010
```sh
11-
zig fetch --save git+https://github.com/johan0A/VulkanMemoryAllocator#0.1.1+3.3.0
11+
zig fetch --save git+https://github.com/johan0A/VulkanMemoryAllocator
1212
```
1313

1414
2. Config `build.zig`:

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pub fn build(b: *std.Build) !void {
1818
if (install_vulkan_headers) lib.installHeadersDirectory(vulkan_headers_path, "", .{});
1919
} else {
2020
if (b.lazyDependency("vulkan_headers", .{})) |vulkan_headers| {
21-
lib.linkLibrary(vulkan_headers.artifact("vulkan-headers"));
22-
if (install_vulkan_headers) lib.installLibraryHeaders(vulkan_headers.artifact("vulkan-headers"));
21+
lib.addIncludePath(vulkan_headers.namedLazyPath("vulkan-headers"));
22+
if (install_vulkan_headers) lib.installHeadersDirectory(vulkan_headers.namedLazyPath("vulkan-headers"), "", .{});
2323
}
2424
}
2525

build.zig.zon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = .VulkanMemoryAllocator,
3-
.version = "0.1.0+3.3.0",
3+
.version = "0.1.2+3.3.0",
44
.fingerprint = 0xb8aa25de81d2ad78, // Changing this has security and trust implications.
55
.minimum_zig_version = "0.14.0",
66
.dependencies = .{
@@ -9,8 +9,8 @@
99
.hash = "N-V-__8AAIutPgABk6NlXZhlJ5P8qVECvakZIKoO94h7xUOw",
1010
},
1111
.vulkan_headers = .{
12-
.url = "git+https://github.com/hexops/vulkan-headers#68ab446d1fa0707bb7082c95c51d33a731cafac2",
13-
.hash = "N-V-__8AAAIGzwCa4tCHc1jhxfgWaL73kQkckQuQ2WA2XWI5",
12+
.url = "git+https://github.com/johan0A/vulkan-headers-zig#acab9467e982b249203db493dd5a3089aeb4c767",
13+
.hash = "vulkan_headers-0.1.0+1.4.326-IPSI1uADAACG8vYTRpu3hY-wLEy_WGmJ5YwI_v2ajFAp",
1414
.lazy = true,
1515
},
1616
},

0 commit comments

Comments
 (0)