diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-05 10:28:08 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-05 10:28:08 -0400 |
| commit | 3e94650ef7bd2407fb0aca11ad19a93b90a14b7c (patch) | |
| tree | 496469e4be7f30570f4908529c419f5e5ce349b1 /src/codegen.cpp | |
| parent | 9a123697e30a15a178767d7bb9237528044c129d (diff) | |
| download | zig-3e94650ef7bd2407fb0aca11ad19a93b90a14b7c.tar.gz zig-3e94650ef7bd2407fb0aca11ad19a93b90a14b7c.zip | |
stage1: fix emit asm with explicit output file
closes #1473
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 3e54e1573f..2f7a25cf93 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -6121,6 +6121,7 @@ static void do_code_gen(CodeGen *g) { zig_panic("unable to write assembly file %s: %s", buf_ptr(output_path), err_msg); } validate_inline_fns(g); + g->link_objects.append(output_path); break; case EmitFileTypeLLVMIr: @@ -6130,6 +6131,7 @@ static void do_code_gen(CodeGen *g) { zig_panic("unable to write llvm-ir file %s: %s", buf_ptr(output_path), err_msg); } validate_inline_fns(g); + g->link_objects.append(output_path); break; default: |
