ecs: update to latest Zig build API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-02-08 01:11:19 -07:00 committed by Stephen Gutekanst
parent a2eb384eaf
commit b6f41b3fb0

View file

@ -1,10 +1,10 @@
const std = @import("std");
pub const pkg = std.build.AddModuleOptions{
.name = "ecs",
.source_file = .{ .path = sdkPath("/src/main.zig") },
.dependencies = &[_]std.build.AddModuleOptions{},
};
pub fn module(b: *std.Build) *std.build.Module {
return b.createModule(.{
.source_file = .{ .path = sdkPath("/src/main.zig") },
});
}
pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});