forked from zenolith/zenolith-sdl2
build: using b.path
This commit is contained in:
parent
2194b84b4a
commit
df98a2cfeb
2 changed files with 2 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
/zig-*
|
||||
.zig-cache
|
||||
/.zig-cache
|
||||
|
|
|
@ -16,7 +16,7 @@ pub fn build(b: *std.Build) !void {
|
|||
}).module("zenolith");
|
||||
|
||||
const mod = b.addModule("zenolith-sdl2", .{
|
||||
.root_source_file = .{ .src_path = .{ .owner = b, .sub_path = "src/main.zig" } },
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.imports = &.{.{ .name = "zenolith", .module = zenolith_mod }},
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
|
|
Loading…
Reference in a new issue