fix self-hosted compiler regression

master
Andrew Kelley 2020-01-21 01:50:44 -05:00
parent 5974f95cb7
commit 0abaee79af
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ pub fn main() !void {
} else if (mem.eql(u8, cmd, "libc")) { } else if (mem.eql(u8, cmd, "libc")) {
return cmdLibC(allocator, cmd_args); return cmdLibC(allocator, cmd_args);
} else if (mem.eql(u8, cmd, "targets")) { } else if (mem.eql(u8, cmd, "targets")) {
return @import("print_targets.zig").cmdTargets(allocator, cmd_args, stdout); // TODO figure out the current target rather than using the target that was specified when
// compiling the compiler
return @import("print_targets.zig").cmdTargets(allocator, cmd_args, stdout, Target.current);
} else if (mem.eql(u8, cmd, "version")) { } else if (mem.eql(u8, cmd, "version")) {
return cmdVersion(allocator, cmd_args); return cmdVersion(allocator, cmd_args);
} else if (mem.eql(u8, cmd, "zen")) { } else if (mem.eql(u8, cmd, "zen")) {