| ... | @@ -27,6 +27,7 @@ const trace = @import("tracy.zig").trace; | ... | @@ -27,6 +27,7 @@ const trace = @import("tracy.zig").trace; |
| 27 | const AstGen = @import("AstGen.zig"); | 27 | const AstGen = @import("AstGen.zig"); |
| 28 | const Sema = @import("Sema.zig"); | 28 | const Sema = @import("Sema.zig"); |
| 29 | const target_util = @import("target.zig"); | 29 | const target_util = @import("target.zig"); |
| | 30 | const build_options = @import("build_options"); |
| 30 | | 31 | |
| 31 | /// General-purpose allocator. Used for both temporary and long-term storage. | 32 | /// General-purpose allocator. Used for both temporary and long-term storage. |
| 32 | gpa: *Allocator, | 33 | gpa: *Allocator, |
| ... | @@ -2235,6 +2236,7 @@ pub fn astGenFile(mod: *Module, file: *Scope.File) !void { | ... | @@ -2235,6 +2236,7 @@ pub fn astGenFile(mod: *Module, file: *Scope.File) !void { |
| 2235 | const want_local_cache = file.pkg == mod.root_pkg; | 2236 | const want_local_cache = file.pkg == mod.root_pkg; |
| 2236 | const digest = hash: { | 2237 | const digest = hash: { |
| 2237 | var path_hash: Cache.HashHelper = .{}; | 2238 | var path_hash: Cache.HashHelper = .{}; |
| | 2239 | path_hash.addBytes(build_options.version); |
| 2238 | if (!want_local_cache) { | 2240 | if (!want_local_cache) { |
| 2239 | path_hash.addOptionalBytes(file.pkg.root_src_directory.path); | 2241 | path_hash.addOptionalBytes(file.pkg.root_src_directory.path); |
| 2240 | } | 2242 | } |