build.zig: Clean up my mess

This commit is contained in:
Sage Hane 2024-10-16 13:02:05 +09:00
parent c9c830cb97
commit 8046406162
No known key found for this signature in database

View File

@ -68,7 +68,7 @@ fn srcDir(b: *std.Build) []const u8 {
@compileError("Please take a look at this function again"); @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 "."; return std.fs.path.dirname(src_file) orelse ".";
} }