diff options
| author | Samrat Man Singh <samratmansingh@gmail.com> | 2020-09-15 15:30:42 +0530 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-15 18:03:55 -0400 |
| commit | ca85e367f4376a9365476386e1edbb6aada487c2 (patch) | |
| tree | 21d322f9975ce93104ac26da028cdef7462b3646 /src-self-hosted/stage2.zig | |
| parent | b3cc36857ebc4bcfc259da361018d70c1a7d9e7b (diff) | |
| download | zig-ca85e367f4376a9365476386e1edbb6aada487c2.tar.gz zig-ca85e367f4376a9365476386e1edbb6aada487c2.zip | |
Use std.log in LibcInstallation `parse` instead of taking `stderr`
Diffstat (limited to 'src-self-hosted/stage2.zig')
| -rw-r--r-- | src-self-hosted/stage2.zig | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src-self-hosted/stage2.zig b/src-self-hosted/stage2.zig index 45b8ad3073..ac4d89bb21 100644 --- a/src-self-hosted/stage2.zig +++ b/src-self-hosted/stage2.zig @@ -598,12 +598,9 @@ const Stage2LibCInstallation = extern struct { // ABI warning export fn stage2_libc_parse(stage1_libc: *Stage2LibCInstallation, libc_file_z: [*:0]const u8) Error { - stderr_file = std.io.getStdErr(); - stderr = stderr_file.outStream(); const libc_file = mem.spanZ(libc_file_z); - var libc = LibCInstallation.parse(std.heap.c_allocator, libc_file, stderr) catch |err| switch (err) { + var libc = LibCInstallation.parse(std.heap.c_allocator, libc_file) catch |err| switch (err) { error.ParseError => return .SemanticAnalyzeFail, - error.DiskQuota => return .DiskQuota, error.FileTooBig => return .FileTooBig, error.InputOutput => return .FileSystem, error.NoSpaceLeft => return .NoSpaceLeft, @@ -612,7 +609,6 @@ export fn stage2_libc_parse(stage1_libc: *Stage2LibCInstallation, libc_file_z: [ error.SystemResources => return .SystemResources, error.OperationAborted => return .OperationAborted, error.WouldBlock => unreachable, - error.NotOpenForWriting => unreachable, error.NotOpenForReading => unreachable, error.Unexpected => return .Unexpected, error.IsDir => return .IsDir, |
