authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-05 10:28:08-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-09-05 10:28:08-04:00
log3e94650ef7bd2407fb0aca11ad19a93b90a14b7c
tree496469e4be7f30570f4908529c419f5e5ce349b1
parent9a123697e30a15a178767d7bb9237528044c129d
signaturelock-open Commit is signed but in an unrecognized format.

stage1: fix emit asm with explicit output file

closes #1473

1 files changed, 2 insertions(+), 0 deletions(-)

src/codegen.cpp+2
...@@ -6121,6 +6121,7 @@ static void do_code_gen(CodeGen *g) {...@@ -6121,6 +6121,7 @@ static void do_code_gen(CodeGen *g) {
6121 zig_panic("unable to write assembly file %s: %s", buf_ptr(output_path), err_msg);6121 zig_panic("unable to write assembly file %s: %s", buf_ptr(output_path), err_msg);
6122 }6122 }
6123 validate_inline_fns(g);6123 validate_inline_fns(g);
6124 g->link_objects.append(output_path);
6124 break;6125 break;
61256126
6126 case EmitFileTypeLLVMIr:6127 case EmitFileTypeLLVMIr:
...@@ -6130,6 +6131,7 @@ static void do_code_gen(CodeGen *g) {...@@ -6130,6 +6131,7 @@ static void do_code_gen(CodeGen *g) {
6130 zig_panic("unable to write llvm-ir file %s: %s", buf_ptr(output_path), err_msg);6131 zig_panic("unable to write llvm-ir file %s: %s", buf_ptr(output_path), err_msg);
6131 }6132 }
6132 validate_inline_fns(g);6133 validate_inline_fns(g);
6134 g->link_objects.append(output_path);
6133 break;6135 break;
61346136
6135 default:6137 default: