top | item 43273244

(no title)

squeek502 | 1 year ago

My understanding is that Zig's incremental compilation will work on a much more granular level (i.e. functions, etc), so, for example, change one function and only that function (and its dependencies) will get recompiled/relinked (there's some linker trickery involved to avoid needing to relink everything IIUC).

More details here: https://ziggit.dev/t/how-zig-incremental-compilation-is-impl...

discuss

order

robinei|1 year ago

Why would the function's dependencies need recompilation? I guess the dependees may require it, if they inlined it, or if the signature changed.

squeek502|1 year ago

I'm probably not describing it fully accurately. See the link for the proper explanation.