authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-27 14:44:35-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-27 14:46:55-07:00
log3d9e4edb57fdd54bca5280dc0fb6ea447e5d0407
tree75f699a536198da72d15b025d68a93f4426b5989
parentbfded492f0c12be2778c566bad0c82dea6ee76cb

link: fix compile error from previous commit


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

src/Compilation.zig+3-2
...@@ -3678,7 +3678,7 @@ fn updateStage1Module(comp: *Compilation, main_progress_node: *std.Progress.Node...@@ -3678,7 +3678,7 @@ fn updateStage1Module(comp: *Compilation, main_progress_node: *std.Progress.Node
3678 man.hash.add(comp.bin_file.options.emit != null);3678 man.hash.add(comp.bin_file.options.emit != null);
3679 man.hash.add(mod.emit_h != null);3679 man.hash.add(mod.emit_h != null);
3680 if (mod.emit_h) |emit_h| {3680 if (mod.emit_h) |emit_h| {
3681 man.hash.addEmitLoc(emit_h);3681 man.hash.addEmitLoc(emit_h.loc);
3682 }3682 }
3683 man.hash.addOptionalEmitLoc(comp.emit_asm);3683 man.hash.addOptionalEmitLoc(comp.emit_asm);
3684 man.hash.addOptionalEmitLoc(comp.emit_llvm_ir);3684 man.hash.addOptionalEmitLoc(comp.emit_llvm_ir);
...@@ -3797,7 +3797,8 @@ fn updateStage1Module(comp: *Compilation, main_progress_node: *std.Progress.Node...@@ -3797,7 +3797,8 @@ fn updateStage1Module(comp: *Compilation, main_progress_node: *std.Progress.Node
3797 if (mod.emit_h != null) {3797 if (mod.emit_h != null) {
3798 log.warn("-femit-h is not available in the stage1 backend; no .h file will be produced", .{});3798 log.warn("-femit-h is not available in the stage1 backend; no .h file will be produced", .{});
3799 }3799 }
3800 const emit_h_path = try stage1LocPath(arena, mod.emit_h, directory);3800 const emit_h_loc: ?EmitLoc = if (mod.emit_h) |emit_h| emit_h.loc else null;
3801 const emit_h_path = try stage1LocPath(arena, emit_h_loc, directory);
3801 const emit_asm_path = try stage1LocPath(arena, comp.emit_asm, directory);3802 const emit_asm_path = try stage1LocPath(arena, comp.emit_asm, directory);
3802 const emit_llvm_ir_path = try stage1LocPath(arena, comp.emit_llvm_ir, directory);3803 const emit_llvm_ir_path = try stage1LocPath(arena, comp.emit_llvm_ir, directory);
3803 const emit_analysis_path = try stage1LocPath(arena, comp.emit_analysis, directory);3804 const emit_analysis_path = try stage1LocPath(arena, comp.emit_analysis, directory);