zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1337f0bc6adf7f57466228efe09ba2c22e4683ae (tree)
parent 56086d11a463297eea3a52ad8e6b245ed397029f
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sat, 26 Sep 2020 02:34:18 -0700

move to stage1-specific cache manifest emission of extra stuff

Diffstat:
Msrc/Compilation.zig | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 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();