ecs: correct build pkg filepath
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6227f11af4
commit
87ecd8b29e
1 changed files with 5 additions and 1 deletions
|
|
@ -13,6 +13,10 @@ pub fn build(b: *std.build.Builder) void {
|
|||
|
||||
pub const pkg = std.build.Pkg{
|
||||
.name = "ecs",
|
||||
.source = .{ .path = "src/main.zig" },
|
||||
.source = .{ .path = thisDir() ++ "/src/main.zig" },
|
||||
.dependencies = &[_]std.build.Pkg{},
|
||||
};
|
||||
|
||||
fn thisDir() []const u8 {
|
||||
return std.fs.path.dirname(@src().file) orelse ".";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue