aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
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: