| ... | @@ -394,3 +394,12 @@ fn fmtPathFile( | ... | @@ -394,3 +394,12 @@ fn fmtPathFile( |
| 394 | try stdout.print("{s}\n", .{file_path}); | 394 | try stdout.print("{s}\n", .{file_path}); |
| 395 | } | 395 | } |
| 396 | } | 396 | } |
| | 397 | |
| | 398 | /// Provided for debugging/testing purposes; unused by the compiler. |
| | 399 | pub fn main() !void { |
| | 400 | const gpa = std.heap.smp_allocator; |
| | 401 | var arena_instance = std.heap.ArenaAllocator.init(gpa); |
| | 402 | const arena = arena_instance.allocator(); |
| | 403 | const args = try process.argsAlloc(arena); |
| | 404 | return run(gpa, arena, args[1..]); |
| | 405 | } |