authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-21 01:50:44-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-21 01:51:21-05:00
log0abaee79af462f4264717f88af052fb00eefde7c
treeabdb813e76384e79c002878047e5b24a2e3d965f
parent5974f95cb75921d973caa38e049deaebc7a7b628
signaturelock-open Commit is signed but in an unrecognized format.

fix self-hosted compiler regression


1 files changed, 3 insertions(+), 1 deletions(-)

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