| ... | ... | @@ -42,10 +42,10 @@ fn detct_mainfile(def: []const u8) ![]const u8 { |
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | | if (try u.does_file_exist("./src/lib.zig")) { |
| 45 | if (try u.does_file_exist(try std.fs.path.join(gpa, &[_][]const u8{"src", "lib.zig"}))) { |
| 46 | 46 | return "src/lib.zig"; |
| 47 | 47 | } |
| 48 | | if (try u.does_file_exist("./src/main.zig")) { |
| 48 | if (try u.does_file_exist(try std.fs.path.join(gpa, &[_][]const u8{"src", "main.zig"}))) { |
| 49 | 49 | return "src/main.zig"; |
| 50 | 50 | } |
| 51 | 51 | u.assert(false, "unable to detect package entry point", .{}); |