gpu: Dont link dawn and glfw in wasm32
This commit is contained in:
parent
ae4374b9df
commit
66cc8281e5
1 changed files with 4 additions and 2 deletions
|
|
@ -45,8 +45,10 @@ pub const pkg = std.build.Pkg{
|
|||
};
|
||||
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep, options: Options) void {
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue