authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-25 20:17:09+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-03-28 16:50:43+00:00
log4a494a8cf94596e73a7ace576111500be7a6f758
tree02c13802d2e846f0077d6150ab676cf65c2fcb53
parentd28c5069b8421628fcb333d8e558a41d2a2d93d5
signaturelock-open Commit is signed but in an unrecognized format.

tests: enable incremental tests for x86_64-linux-llvm

These all pass now! I have also removed the warning about the LLVM backend not supporting incremental compilation; I expect it will work sort of okay in practice by now.

38 files changed, 37 insertions(+), 4 deletions(-)

src/main.zig-4
......@@ -3528,10 +3528,6 @@ fn buildOutputType(
35283528 fatal("--debug-incremental requires -fincremental", .{});
35293529 }
35303530
3531 if (incremental and create_module.resolved_options.use_llvm) {
3532 warn("-fincremental is currently unsupported by the LLVM backend; crashes or miscompilations are likely", .{});
3533 }
3534
35353531 const cache_mode: Compilation.CacheMode = b: {
35363532 // Once incremental compilation is the default, we'll want some smarter logic here,
35373533 // considering things like the backend in use and whether there's a ZCU.
test/incremental/add_decl+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56//#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/add_decl_namespaced+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56//#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/add_remove_struct_fields+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56//#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/add_remove_toplevel_fields+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56//#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/analysis_error_and_syntax_error+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/bad_import+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67
78#update=initial version
test/incremental/change_embed_file+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/change_enum_tag_type+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/change_exports+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56
67#update=initial version
78#file=main.zig
test/incremental/change_fn_type+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#update=initial version
67#file=main.zig
78pub fn main() !void {
test/incremental/change_generic_line_number+1
......@@ -1,5 +1,6 @@
11#target=x86_64-linux-selfhosted
22#target=x86_64-windows-selfhosted
3#target=x86_64-linux-llvm
34#target=wasm32-wasi-selfhosted
45#update=initial version
56#file=main.zig
test/incremental/change_line_number+1
......@@ -1,5 +1,6 @@
11#target=x86_64-linux-selfhosted
22#target=x86_64-windows-selfhosted
3#target=x86_64-linux-llvm
34#target=wasm32-wasi-selfhosted
45#update=initial version
56#file=main.zig
test/incremental/change_module+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#module=foo=foo.zig
78
test/incremental/change_panic_handler+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#update=initial version
67#file=main.zig
78pub fn main() !u8 {
test/incremental/change_panic_handler_explicit+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#update=initial version
67#file=main.zig
78pub fn main() !u8 {
test/incremental/change_shift_op+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/change_struct_same_fields+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/change_zon_file+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56//#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/change_zon_file_no_result_type+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56//#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/compile_error_then_log+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version with compile error
78#file=main.zig
test/incremental/compile_log+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67
78#update=initial version with no compile log
test/incremental/delete_comptime_decls+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/dependency_on_type_of_inferred_global+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/fix_astgen_failure+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version with error
78#file=main.zig
test/incremental/function_becomes_inline+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#update=non-inline version
67#file=main.zig
78pub fn main() !void {
test/incremental/hello+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/make_decl_pub+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/modify_inline_fn+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/move_src+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/no_change_preserves_tag_names+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56//#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/recursive_function_becomes_non_recursive+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/remove_enum_field+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/remove_invalid_union_backing_enum+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/temporary_parse_error+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/type_becomes_comptime_only+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/type_dependency_loop+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig
test/incremental/unreferenced_error+1
......@@ -2,6 +2,7 @@
22#target=x86_64-windows-selfhosted
33#target=x86_64-linux-cbe
44#target=x86_64-windows-cbe
5#target=x86_64-linux-llvm
56#target=wasm32-wasi-selfhosted
67#update=initial version
78#file=main.zig