core: update to latest Zig version

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-03-11 20:13:50 -07:00
parent 51b0e8695f
commit 729ffa2d17
4 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ pub fn Sdk(comptime deps: anytype) type {
const lib = b.addSharedLibrary(.{ .name = "machcore", .root_source_file = .{ .path = "src/platform/libmachcore.zig" }, .target = target, .optimize = optimize });
lib.main_pkg_path = "src/";
const app_module = b.createModule(.{
.source_file = .{ .path = "src/platform/libmachcore.zig" },
.source_file = .{ .path = "src/platform/libmachcore_app.zig" },
});
lib.addModule("app", app_module);
lib.addModule("glfw", deps.glfw.module(b));

View file

@ -6,4 +6,5 @@ pub const sysjs = @import("sysjs");
test {
_ = @import("platform/libmachcore.zig");
_ = @import("platform/libmachcore_app.zig");
}

View file

@ -6,8 +6,6 @@ const glfw = @import("glfw");
const Core = @import("../Core.zig");
const native = @import("native.zig");
pub const App = @This();
pub const GPUInterface = gpu.dawn.Interface;
const _ = gpu.Export(GPUInterface);

View file

@ -0,0 +1 @@
pub const App = @This();