fixing example performance issues
Some checks failed
Build / build (push) Failing after 30s
Test / build (push) Failing after 54s

This commit is contained in:
2026-01-21 17:44:10 +01:00
parent 19687251b0
commit c175224a01
4 changed files with 28 additions and 23 deletions

View File

@@ -23,6 +23,11 @@ pub fn build(b: *std.Build) void {
// Zig example setup
const sdl3 = b.lazyDependency("sdl3", .{
.target = target,
.optimize = optimize,
}) orelse return;
const example_exe = b.addExecutable(.{
.name = "spirv_interpreter_example",
.root_module = b.createModule(.{
@@ -31,17 +36,12 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
.imports = &.{
.{ .name = "spv", .module = mod },
.{ .name = "pretty", .module = pretty.module("pretty") },
.{ .name = "sdl3", .module = sdl3.module("sdl3") },
//.{ .name = "pretty", .module = pretty.module("pretty") },
},
}),
});
const sdl3 = b.lazyDependency("sdl3", .{
.target = target,
.optimize = optimize,
}) orelse return;
example_exe.root_module.addImport("sdl3", sdl3.module("sdl3"));
const example_install = b.addInstallArtifact(example_exe, .{});
example_install.step.dependOn(&lib_install.step);