| author | |
| committer | |
| log | 18b8a625f55f1c9cd325ec1ffb8d6d666c440b86 |
| tree | e2edfd35ed9e87a844523c64e413cab1dad0dc01 |
| parent | 7c91a055c120f9fdad122aad294a40a37510a6a6 |
1 files changed, 4 insertions(+), 1 deletions(-)
src-self-hosted/main.zig+4-1| ... | ... | @@ -377,7 +377,10 @@ pub fn main2() -> %void { |
| 377 | 377 | |
| 378 | 378 | const allocator = &incrementing_allocator.allocator; |
| 379 | 379 | |
| 380 | const target_file = "input.zig"; // TODO | |
| 380 | const args = %return os.argsAlloc(allocator); | |
| 381 | defer os.argsFree(allocator, args); | |
| 382 | ||
| 383 | const target_file = args[1]; | |
| 381 | 384 | |
| 382 | 385 | const target_file_buf = %return io.readFileAlloc(target_file, allocator); |
| 383 | 386 |