fix `zig builtin`

master
Andrew Kelley 2019-12-03 13:57:13 -05:00
parent 8db4d2332e
commit e3ebaab3c7
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
1 changed files with 1 additions and 2 deletions

View File

@ -8377,8 +8377,6 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
}
const char *out_type = nullptr;
switch (g->out_type) {
case OutTypeUnknown:
zig_unreachable();
case OutTypeExe:
out_type = "Exe";
break;
@ -8386,6 +8384,7 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
out_type = "Lib";
break;
case OutTypeObj:
case OutTypeUnknown: // This happens when running the `zig builtin` command.
out_type = "Obj";
break;
}