wasm incremental compilation does not handle object updates #22501
Labels
arch-wasm
32-bit and 64-bit WebAssembly
bug
Observed behavior contradicts documented or intended behavior
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
incremental compilation
Problem occurs only when reusing compiler state.
linking
Milestone
Zig version:
0.14.0-dev.2790+d4fe4698d
The wasm linker backend does not have a way to repeat the "prelink" phase. You can reproduce this by having a C object in the compilation and editing it during an incremental update:
build.zig:
simple.c
The update fails because the wasm linker has no way to repeat the prelink phase. It needs to redo all object parsing and then reconnect any references from Zcu to the newly parsed object data.
The text was updated successfully, but these errors were encountered: