| ... | ... | @@ -273,6 +273,7 @@ pub fn parseArgs( |
| 273 | 273 | macro_buf: *std.ArrayList(u8), |
| 274 | 274 | args: []const []const u8, |
| 275 | 275 | ) (Compilation.Error || std.Io.Writer.Error)!bool { |
| 276 | const io = d.comp.io; |
| 276 | 277 | var i: usize = 1; |
| 277 | 278 | var comment_arg: []const u8 = ""; |
| 278 | 279 | var hosted: ?bool = null; |
| ... | ... | @@ -772,7 +773,7 @@ pub fn parseArgs( |
| 772 | 773 | opts.arch_os_abi, @errorName(e), |
| 773 | 774 | }), |
| 774 | 775 | }; |
| 775 | | d.comp.target = std.zig.system.resolveTargetQuery(query) catch |e| { |
| 776 | d.comp.target = std.zig.system.resolveTargetQuery(io, query) catch |e| { |
| 776 | 777 | return d.fatal("unable to resolve target: {s}", .{errorDescription(e)}); |
| 777 | 778 | }; |
| 778 | 779 | } |
| ... | ... | @@ -916,8 +917,7 @@ pub fn errorDescription(e: anyerror) []const u8 { |
| 916 | 917 | error.NotDir => "is not a directory", |
| 917 | 918 | error.NotOpenForReading => "file is not open for reading", |
| 918 | 919 | error.NotOpenForWriting => "file is not open for writing", |
| 919 | | error.InvalidUtf8 => "path is not valid UTF-8", |
| 920 | | error.InvalidWtf8 => "path is not valid WTF-8", |
| 920 | error.BadPathName => "bad path name", |
| 921 | 921 | error.FileBusy => "file is busy", |
| 922 | 922 | error.NameTooLong => "file name is too long", |
| 923 | 923 | error.AccessDenied => "access denied", |