{gpu, gpu-dawn}: update to latest zig

This commit is contained in:
Ali Chraghi 2022-09-02 17:22:52 +04:30 committed by Stephen Gutekanst
parent 47e90c1a7e
commit 2b533f7763
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
const std = @import("std"); const std = @import("std");
const Builder = std.build.Builder; const Builder = std.build.Builder;
pub fn Sdk(deps: anytype) type { pub fn Sdk(comptime deps: anytype) type {
return struct { return struct {
pub const LinuxWindowManager = enum { pub const LinuxWindowManager = enum {
X11, X11,

View file

@ -2,7 +2,7 @@ const std = @import("std");
// const gpu_dawn = @import("libs/mach-gpu-dawn/build.zig"); // const gpu_dawn = @import("libs/mach-gpu-dawn/build.zig");
// const glfw = @import("libs/mach-glfw/build.zig"); // const glfw = @import("libs/mach-glfw/build.zig");
pub fn Sdk(deps: anytype) type { pub fn Sdk(comptime deps: anytype) type {
return struct { return struct {
pub fn testStep(b: *std.build.Builder, mode: std.builtin.Mode, target: std.zig.CrossTarget, options: Options) *std.build.RunStep { pub fn testStep(b: *std.build.Builder, mode: std.builtin.Mode, target: std.zig.CrossTarget, options: Options) *std.build.RunStep {
const main_tests = b.addTestExe("gpu-tests", (comptime thisDir()) ++ "/src/main.zig"); const main_tests = b.addTestExe("gpu-tests", (comptime thisDir()) ++ "/src/main.zig");