From 1337f0bc6adf7f57466228efe09ba2c22e4683ae Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 26 Sep 2020 02:34:18 -0700 Subject: move to stage1-specific cache manifest emission of extra stuff --- src/Compilation.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index f51ea74d56..1af83078dd 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -588,11 +588,6 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { cache.hash.add(options.output_mode); cache.hash.add(options.machine_code_model); cache.hash.add(options.emit_bin != null); - cache.hash.add(options.emit_h != null); - cache.hash.add(options.emit_asm != null); - cache.hash.add(options.emit_llvm_ir != null); - cache.hash.add(options.emit_analysis != null); - cache.hash.add(options.emit_docs != null); // TODO audit this and make sure everything is in it const module: ?*Module = if (options.root_pkg) |root_pkg| blk: { @@ -2457,6 +2452,11 @@ fn updateStage1Module(comp: *Compilation) !void { man.hash.add(comp.bin_file.options.dll_export_fns); man.hash.add(comp.bin_file.options.function_sections); man.hash.add(comp.is_test); + man.hash.add(comp.emit_h != null); + man.hash.add(comp.emit_asm != null); + man.hash.add(comp.emit_llvm_ir != null); + man.hash.add(comp.emit_analysis != null); + man.hash.add(comp.emit_docs != null); // Capture the state in case we come back from this branch where the hash doesn't match. const prev_hash_state = man.hash.peekBin(); -- cgit v1.2.3