소스 검색

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

Sage Hane 10 달 전
부모
커밋
dc5e6e0ad0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/build.zig

+ 1 - 1
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 ".";
 }