diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-03 13:57:13 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-03 13:57:13 -0500 |
| commit | e3ebaab3c71a9af833e30dc4fe3a7b49d5cd9149 (patch) | |
| tree | ff9880c407195a7e728bfe52df6224603b2ad020 /src/codegen.cpp | |
| parent | 8db4d2332e62ba31412b28e725f4c4ae3b7dd801 (diff) | |
| download | zig-e3ebaab3c71a9af833e30dc4fe3a7b49d5cd9149.tar.gz zig-e3ebaab3c71a9af833e30dc4fe3a7b49d5cd9149.zip | |
fix `zig builtin`
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index bc66d08167..324a32485e 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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; } |
