zig/test/incremental
mlugg f47b8de2ad
incremental: handle @embedFile
Uses of `@embedFile` register dependencies on the corresponding
`Zcu.EmbedFile`. At the start of every update, we iterate all embedded
files and update them if necessary, and invalidate the dependencies if
they changed.

In order to properly integrate with the lazy analysis model, failed
embed files are now reported by the `AnalUnit` which actually used
`@embedFile`; the filesystem error is stored in the `Zcu.EmbedFile`.

An incremental test is added covering incremental updates to embedded
files, and I have verified locally that dependency invalidation is
working correctly.
2025-01-25 06:07:08 +00:00
..
add_decl Revert "disable flaky incremental compilation tests" 2025-01-16 20:02:49 -05:00
add_decl_namespaced Revert "disable flaky incremental compilation tests" 2025-01-16 20:02:49 -05:00
change_embed_file incremental: handle @embedFile 2025-01-25 06:07:08 +00:00
change_enum_tag_type incremental: fix enum resolution bugs 2025-01-18 14:30:06 +00:00
change_fn_type test: remove old-style incremental cases, add a few new incremental cases 2024-11-11 12:22:48 +00:00
change_generic_line_number wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
change_line_number wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
change_panic_handler incremental: add new test cases 2025-01-04 07:51:19 +00:00
change_shift_op wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
change_struct_same_fields wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
compile_error_then_log wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
delete_comptime_decls wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
fix_astgen_failure wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
fix_many_errors incremental: fix errors not being deleted upon re-analysis 2025-01-01 15:49:37 +00:00
function_becomes_inline link: fix failing incremental test cases 2024-11-16 14:03:31 -05:00
hello wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
modify_inline_fn wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
move_src wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
recursive_function_becomes_non_recursive wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
remove_enum_field wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
remove_invalid_union_backing_enum wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
temporary_parse_error wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
type_becomes_comptime_only wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00
unreferenced_error wasm linker: incremental test coverage 2025-01-15 15:11:36 -08:00