aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-05 10:28:08 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-09-05 10:28:08 -0400
commit3e94650ef7bd2407fb0aca11ad19a93b90a14b7c (patch)
tree496469e4be7f30570f4908529c419f5e5ce349b1 /src/codegen.cpp
parent9a123697e30a15a178767d7bb9237528044c129d (diff)
downloadzig-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.cpp2
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: