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