aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-26 02:34:18 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-26 02:34:18 -0700
commit1337f0bc6adf7f57466228efe09ba2c22e4683ae (patch)
tree07df74512c8b869ac16c176a958dae7bc4dd0f39 /src/Compilation.zig
parent56086d11a463297eea3a52ad8e6b245ed397029f (diff)
downloadzig-1337f0bc6adf7f57466228efe09ba2c22e4683ae.tar.gz
zig-1337f0bc6adf7f57466228efe09ba2c22e4683ae.zip
move to stage1-specific cache manifest emission of extra stuff
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig10
1 files changed, 5 insertions, 5 deletions
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();