| ... | ... | @@ -2589,6 +2589,11 @@ fn cleanupAfterUpdate(comp: *Compilation, tmp_dir_rand_int: u64) void { |
| 2589 | 2589 | if (none.tmp_artifact_directory) |*tmp_dir| { |
| 2590 | 2590 | tmp_dir.handle.close(); |
| 2591 | 2591 | none.tmp_artifact_directory = null; |
| 2592 | if (dev.env == .bootstrap) { |
| 2593 | // zig1 uses `CacheMode.none`, but it doesn't need to know how to delete |
| 2594 | // temporary directories; it doesn't have a real cache directory anyway. |
| 2595 | return; |
| 2596 | } |
| 2592 | 2597 | const tmp_dir_sub_path = "tmp" ++ std.fs.path.sep_str ++ std.fmt.hex(tmp_dir_rand_int); |
| 2593 | 2598 | comp.dirs.local_cache.handle.deleteTree(tmp_dir_sub_path) catch |err| { |
| 2594 | 2599 | log.warn("failed to delete temporary directory '{s}{c}{s}': {s}", .{ |