diff options
Diffstat (limited to 'src/stage1/codegen.cpp')
| -rw-r--r-- | src/stage1/codegen.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index 7a973285df..d850b3ee31 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -8449,8 +8449,9 @@ static void zig_llvm_emit_output(CodeGen *g) { // Unfortunately, LLVM shits the bed when we ask for both binary and assembly. So we call the entire // pipeline multiple times if this is requested. if (asm_filename != nullptr && bin_filename != nullptr) { - if (ZigLLVMTargetMachineEmitToFile(g->target_machine, g->module, &err_msg, g->build_mode == BuildModeDebug, - is_small, g->enable_time_report, g->tsan_enabled, nullptr, bin_filename, llvm_ir_filename)) + if (ZigLLVMTargetMachineEmitToFile(g->target_machine, g->module, &err_msg, + g->build_mode == BuildModeDebug, is_small, g->enable_time_report, g->tsan_enabled, + g->have_lto, nullptr, bin_filename, llvm_ir_filename)) { fprintf(stderr, "LLVM failed to emit file: %s\n", err_msg); exit(1); @@ -8459,8 +8460,9 @@ static void zig_llvm_emit_output(CodeGen *g) { llvm_ir_filename = nullptr; } - if (ZigLLVMTargetMachineEmitToFile(g->target_machine, g->module, &err_msg, g->build_mode == BuildModeDebug, - is_small, g->enable_time_report, g->tsan_enabled, asm_filename, bin_filename, llvm_ir_filename)) + if (ZigLLVMTargetMachineEmitToFile(g->target_machine, g->module, &err_msg, + g->build_mode == BuildModeDebug, is_small, g->enable_time_report, g->tsan_enabled, + g->have_lto, asm_filename, bin_filename, llvm_ir_filename)) { fprintf(stderr, "LLVM failed to emit file: %s\n", err_msg); exit(1); |
