From dc5e6e0ad089f8eda932efb4646d6bbafe0713cc Mon Sep 17 00:00:00 2001 From: Sage Hane Date: Sat, 19 Oct 2024 04:03:27 +0900 Subject: [PATCH] build.zig: Clean up my mess (#4387) --- src/build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.zig b/src/build.zig index 2a8b8826..3ca1e4c6 100644 --- a/src/build.zig +++ b/src/build.zig @@ -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 "."; }