build.zig: Clean up my mess (#4387)

This commit is contained in:
Sage Hane 2024-10-19 04:03:27 +09:00 committed by GitHub
parent c6d67f006d
commit dc5e6e0ad0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ fn srcDir(b: *std.Build) []const u8 {
@compileError("Please take a look at this function again");
}
const src_file = std.fs.path.relative(b.allocator, @src().file, ".") catch @panic("OOM");
const src_file = std.fs.path.relative(b.allocator, ".", @src().file) catch @panic("OOM");
return std.fs.path.dirname(src_file) orelse ".";
}