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
36783678 man.hash.add(comp.bin_file.options.emit != null);
36793679 man.hash.add(mod.emit_h != null);
36803680 if (mod.emit_h) |emit_h| {
3681 man.hash.addEmitLoc(emit_h);
3681 man.hash.addEmitLoc(emit_h.loc);
36823682 }
36833683 man.hash.addOptionalEmitLoc(comp.emit_asm);
36843684 man.hash.addOptionalEmitLoc(comp.emit_llvm_ir);
......@@ -3797,7 +3797,8 @@ fn updateStage1Module(comp: *Compilation, main_progress_node: *std.Progress.Node
37973797 if (mod.emit_h != null) {
37983798 log.warn("-femit-h is not available in the stage1 backend; no .h file will be produced", .{});
37993799 }
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);
38013802 const emit_asm_path = try stage1LocPath(arena, comp.emit_asm, directory);
38023803 const emit_llvm_ir_path = try stage1LocPath(arena, comp.emit_llvm_ir, directory);
38033804 const emit_analysis_path = try stage1LocPath(arena, comp.emit_analysis, directory);