| ... | @@ -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 it | 591 | // TODO audit this and make sure everything is in it |
| 597 | | 592 | |
| 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); |
| 2460 | | 2460 | |
| 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(); |