From 5373c43f87d68810626c989a43824a4092866c34 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 8 Jul 2023 14:31:09 -0700 Subject: [PATCH] gpu: fix linux build Signed-off-by: Stephen Gutekanst --- libs/gpu/build.zig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/gpu/build.zig b/libs/gpu/build.zig index 31a1a1ee..e69c3061 100644 --- a/libs/gpu/build.zig +++ b/libs/gpu/build.zig @@ -42,9 +42,13 @@ pub fn build(b: *std.Build) !void { .optimize = example.optimize, }).artifact("vulkan-headers")); example.linkLibrary(b.dependency("x11_headers", .{ - .target = target, - .optimize = optimize, + .target = example.target, + .optimize = example.optimize, }).artifact("x11-headers")); + example.linkLibrary(b.dependency("wayland_headers", .{ + .target = example.target, + .optimize = example.optimize, + }).artifact("wayland-headers")); b.installArtifact(example);