stage1: fix emit asm with explicit output file

closes #1473
This commit is contained in:
Andrew Kelley 2018-09-05 10:28:08 -04:00
parent 9a123697e3
commit 3e94650ef7
No known key found for this signature in database
GPG Key ID: 4E7CD66038A4D47C

View File

@ -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); zig_panic("unable to write assembly file %s: %s", buf_ptr(output_path), err_msg);
} }
validate_inline_fns(g); validate_inline_fns(g);
g->link_objects.append(output_path);
break; break;
case EmitFileTypeLLVMIr: 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); zig_panic("unable to write llvm-ir file %s: %s", buf_ptr(output_path), err_msg);
} }
validate_inline_fns(g); validate_inline_fns(g);
g->link_objects.append(output_path);
break; break;
default: default: