gpu-dawn: update build.zig to build latest version of Dawn

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-10 16:38:39 -07:00
parent 55cac7efee
commit 70ee58c904

View file

@ -524,7 +524,11 @@ fn buildLibDawnCommon(b: *Builder, step: *std.build.LibExeObjStep, options: Opti
};
var flags = std.ArrayList([]const u8).init(b.allocator);
flags.append(include("libs/dawn/src")) catch unreachable;
flags.appendSlice(&.{
include("libs/dawn/src"),
include("libs/dawn/out/Debug/gen/include"),
include("libs/dawn/out/Debug/gen/src"),
}) catch unreachable;
appendLangScannedSources(b, lib, options, .{
.rel_dirs = &.{"libs/dawn/src/dawn/common/"},
.flags = flags.items,