From 66cc8281e5abc5c8c55272b6e5fdc01e66575f1a Mon Sep 17 00:00:00 2001 From: iddev5 Date: Sat, 21 May 2022 23:48:54 +0530 Subject: [PATCH] gpu: Dont link dawn and glfw in wasm32 --- gpu/build.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gpu/build.zig b/gpu/build.zig index 6a6bbba2..f57a4298 100644 --- a/gpu/build.zig +++ b/gpu/build.zig @@ -45,8 +45,10 @@ pub const pkg = std.build.Pkg{ }; pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep, options: Options) void { - glfw.link(b, step, options.glfw_options); - gpu_dawn.link(b, step, options.gpu_dawn_options); + if (step.target.toTarget().cpu.arch != .wasm32) { + glfw.link(b, step, options.glfw_options); + gpu_dawn.link(b, step, options.gpu_dawn_options); + } } fn thisDir() []const u8 {