| ... | ... | @@ -27,6 +27,7 @@ const trace = @import("tracy.zig").trace; |
| 27 | 27 | const AstGen = @import("AstGen.zig"); |
| 28 | 28 | const Sema = @import("Sema.zig"); |
| 29 | 29 | const target_util = @import("target.zig"); |
| 30 | const build_options = @import("build_options"); |
| 30 | 31 | |
| 31 | 32 | /// General-purpose allocator. Used for both temporary and long-term storage. |
| 32 | 33 | gpa: *Allocator, |
| ... | ... | @@ -2223,6 +2224,7 @@ pub fn astGenFile(mod: *Module, file: *Scope.File, prog_node: *std.Progress.Node |
| 2223 | 2224 | const want_local_cache = file.pkg == mod.root_pkg; |
| 2224 | 2225 | const digest = hash: { |
| 2225 | 2226 | var path_hash: Cache.HashHelper = .{}; |
| 2227 | path_hash.addBytes(build_options.version); |
| 2226 | 2228 | if (!want_local_cache) { |
| 2227 | 2229 | path_hash.addOptionalBytes(file.pkg.root_src_directory.path); |
| 2228 | 2230 | } |