| author | |
| committer | |
| log | 4a494a8cf94596e73a7ace576111500be7a6f758 |
| tree | 02c13802d2e846f0077d6150ab676cf65c2fcb53 |
| parent | d28c5069b8421628fcb333d8e558a41d2a2d93d5 |
| signature |
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( |
| 3528 | 3528 | fatal("--debug-incremental requires -fincremental", .{}); |
| 3529 | 3529 | } |
| 3530 | 3530 | |
| 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 | ||
| 3535 | 3531 | const cache_mode: Compilation.CacheMode = b: { |
| 3536 | 3532 | // Once incremental compilation is the default, we'll want some smarter logic here, |
| 3537 | 3533 | // considering things like the backend in use and whether there's a ZCU. |
test/incremental/add_decl+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | //#target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/add_decl_namespaced+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | //#target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/add_remove_struct_fields+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | //#target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/add_remove_toplevel_fields+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | //#target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/analysis_error_and_syntax_error+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/bad_import+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | |
| 7 | 8 | #update=initial version |
test/incremental/change_embed_file+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/change_enum_tag_type+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/change_exports+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/change_fn_type+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #update=initial version |
| 6 | 7 | #file=main.zig |
| 7 | 8 | pub fn main() !void { |
test/incremental/change_generic_line_number+1| ... | ... | @@ -1,5 +1,6 @@ |
| 1 | 1 | #target=x86_64-linux-selfhosted |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | #target=x86_64-linux-llvm | |
| 3 | 4 | #target=wasm32-wasi-selfhosted |
| 4 | 5 | #update=initial version |
| 5 | 6 | #file=main.zig |
test/incremental/change_line_number+1| ... | ... | @@ -1,5 +1,6 @@ |
| 1 | 1 | #target=x86_64-linux-selfhosted |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | #target=x86_64-linux-llvm | |
| 3 | 4 | #target=wasm32-wasi-selfhosted |
| 4 | 5 | #update=initial version |
| 5 | 6 | #file=main.zig |
test/incremental/change_module+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #module=foo=foo.zig |
| 7 | 8 |
test/incremental/change_panic_handler+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #update=initial version |
| 6 | 7 | #file=main.zig |
| 7 | 8 | pub fn main() !u8 { |
test/incremental/change_panic_handler_explicit+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #update=initial version |
| 6 | 7 | #file=main.zig |
| 7 | 8 | pub fn main() !u8 { |
test/incremental/change_shift_op+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/change_struct_same_fields+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/change_zon_file+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | //#target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/change_zon_file_no_result_type+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | //#target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/compile_error_then_log+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version with compile error |
| 7 | 8 | #file=main.zig |
test/incremental/compile_log+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | |
| 7 | 8 | #update=initial version with no compile log |
test/incremental/delete_comptime_decls+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/dependency_on_type_of_inferred_global+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/fix_astgen_failure+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version with error |
| 7 | 8 | #file=main.zig |
test/incremental/function_becomes_inline+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #update=non-inline version |
| 6 | 7 | #file=main.zig |
| 7 | 8 | pub fn main() !void { |
test/incremental/hello+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/make_decl_pub+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/modify_inline_fn+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/move_src+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/no_change_preserves_tag_names+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | //#target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/recursive_function_becomes_non_recursive+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/remove_enum_field+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/remove_invalid_union_backing_enum+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/temporary_parse_error+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/type_becomes_comptime_only+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/type_dependency_loop+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |
test/incremental/unreferenced_error+1| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | #target=x86_64-windows-selfhosted |
| 3 | 3 | #target=x86_64-linux-cbe |
| 4 | 4 | #target=x86_64-windows-cbe |
| 5 | #target=x86_64-linux-llvm | |
| 5 | 6 | #target=wasm32-wasi-selfhosted |
| 6 | 7 | #update=initial version |
| 7 | 8 | #file=main.zig |