almost finished update to Zig 0.16.0
Some checks failed
Build / build (push) Successful in 2m18s
Test / build_and_test (push) Failing after 6m9s

This commit is contained in:
2026-04-18 02:26:29 +02:00
parent d5a520e261
commit e97ee8b23d
23 changed files with 355 additions and 466 deletions

View File

@@ -47,6 +47,8 @@ pub fn build(b: *std.Build) !void {
base_mod.addSystemIncludePath(vulkan_headers.path("include"));
base_mod.addSystemIncludePath(vulkan_utility_libraries.path("include"));
const use_llvm = b.option(bool, "use-llvm", "use llvm") orelse (b.release_mode != .off);
for (implementations) |impl| {
const lib_mod = b.createModule(.{
.root_source_file = b.path(impl.root_source_file),
@@ -65,7 +67,7 @@ pub fn build(b: *std.Build) !void {
.name = b.fmt("vulkan_{s}", .{impl.name}),
.root_module = lib_mod,
.linkage = .dynamic,
.use_llvm = true, // Fixes some random bugs happenning with custom backend. Investigations needed
.use_llvm = use_llvm,
});
if (impl.custom) |custom| {
@@ -145,9 +147,6 @@ fn customSoft(b: *std.Build, lib: *std.Build.Step.Compile) !void {
lib.root_module.addSystemIncludePath(cpuinfo.path("include"));
lib.root_module.linkLibrary(cpuinfo.artifact("cpuinfo"));
const interface = b.lazyDependency("interface", .{}) orelse return error.UnresolvedDependency;
lib.root_module.addImport("interface", interface.module("interface"));
const spv = b.dependency("SPIRV_Interpreter", .{
.@"no-example" = true,
.@"no-test" = true,