authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-09-26 02:34:18-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-09-26 02:34:18-07:00
log1337f0bc6adf7f57466228efe09ba2c22e4683ae
tree07df74512c8b869ac16c176a958dae7bc4dd0f39
parent56086d11a463297eea3a52ad8e6b245ed397029f

move to stage1-specific cache manifest emission of extra stuff


1 files changed, 5 insertions(+), 5 deletions(-)

src/Compilation.zig+5-5
...@@ -588,11 +588,6 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {...@@ -588,11 +588,6 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation {
588 cache.hash.add(options.output_mode);588 cache.hash.add(options.output_mode);
589 cache.hash.add(options.machine_code_model);589 cache.hash.add(options.machine_code_model);
590 cache.hash.add(options.emit_bin != null);590 cache.hash.add(options.emit_bin != null);
591 cache.hash.add(options.emit_h != null);
592 cache.hash.add(options.emit_asm != null);
593 cache.hash.add(options.emit_llvm_ir != null);
594 cache.hash.add(options.emit_analysis != null);
595 cache.hash.add(options.emit_docs != null);
596 // TODO audit this and make sure everything is in it591 // TODO audit this and make sure everything is in it
597592
598 const module: ?*Module = if (options.root_pkg) |root_pkg| blk: {593 const module: ?*Module = if (options.root_pkg) |root_pkg| blk: {
...@@ -2457,6 +2452,11 @@ fn updateStage1Module(comp: *Compilation) !void {...@@ -2457,6 +2452,11 @@ fn updateStage1Module(comp: *Compilation) !void {
2457 man.hash.add(comp.bin_file.options.dll_export_fns);2452 man.hash.add(comp.bin_file.options.dll_export_fns);
2458 man.hash.add(comp.bin_file.options.function_sections);2453 man.hash.add(comp.bin_file.options.function_sections);
2459 man.hash.add(comp.is_test);2454 man.hash.add(comp.is_test);
2455 man.hash.add(comp.emit_h != null);
2456 man.hash.add(comp.emit_asm != null);
2457 man.hash.add(comp.emit_llvm_ir != null);
2458 man.hash.add(comp.emit_analysis != null);
2459 man.hash.add(comp.emit_docs != null);
24602460
2461 // Capture the state in case we come back from this branch where the hash doesn't match.2461 // Capture the state in case we come back from this branch where the hash doesn't match.
2462 const prev_hash_state = man.hash.peekBin();2462 const prev_hash_state = man.hash.peekBin();