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
signature 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 {...@@ -79,7 +79,9 @@ pub fn main() !void {
79 } else if (mem.eql(u8, cmd, "libc")) {79 } else if (mem.eql(u8, cmd, "libc")) {
80 return cmdLibC(allocator, cmd_args);80 return cmdLibC(allocator, cmd_args);
81 } else if (mem.eql(u8, cmd, "targets")) {81 } 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);
83 } else if (mem.eql(u8, cmd, "version")) {85 } else if (mem.eql(u8, cmd, "version")) {
84 return cmdVersion(allocator, cmd_args);86 return cmdVersion(allocator, cmd_args);
85 } else if (mem.eql(u8, cmd, "zen")) {87 } else if (mem.eql(u8, cmd, "zen")) {