mlugg 55a2e535fd
compiler: integrate ZON with the ZIR caching system
This came with a big cleanup to `Zcu.PerThread.updateFile` (formerly
`astGenFile`).

Also, change how the cache manifest works for files in the import table.
Instead of being added to the manifest when we call `semaFile` on them,
we iterate the import table after running the AstGen workers and add all
the files to the cache manifest then.

The downside is that this is a bit more eager to include files in the
manifest; in particular, files which are imported but not actually
referenced are now included in analysis. So, for instance, modifying any
standard library file will invalidate all Zig compilations using that
standard library, even if they don't use that file.

The original motivation here was simply that the old logic in `semaFile`
didn't translate nicely to ZON. However, it turns out to actually be
necessary for correctness. Because `@import("foo.zig")` is an
AstGen-level error if `foo.zig` does not exist, we need to invalidate
the cache when an imported but unreferenced file is removed to make sure
this error is triggered when it needs to be.

Resolves: #22746
2025-02-04 16:20:29 +00:00
..
2025-02-01 04:27:24 +01:00
2024-12-19 17:10:03 -05:00
2025-02-03 09:14:37 +00:00
2024-07-23 11:43:12 -07:00
2025-02-03 09:14:37 +00:00
2024-07-09 14:25:42 -07:00
2024-03-10 18:13:30 -07:00
2025-02-01 04:27:24 +01:00
2024-08-22 08:44:08 +02:00
2024-03-21 14:11:46 -07:00
2024-11-01 02:04:27 +03:30
2025-01-29 21:10:20 -08:00
2024-08-07 00:48:32 -07:00
2024-07-31 16:57:42 -07:00
2025-01-16 20:42:08 -05:00
2025-01-16 20:42:08 -05:00
2024-08-29 23:43:52 +01:00
2025-01-20 15:37:57 -06:00
2025-01-16 20:42:08 -05:00
2025-02-03 09:14:37 +00:00
2025-02-03 09:14:37 +00:00