| ... | @@ -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")) { |