# compiler: integrate \`@compileLog\` with incremental compilation · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8c9c24e09b8a1e1ea92a16edd654a4b27e9ecf94)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8c9c24e09b8a1e1ea92a16edd654a4b27e9ecf94

Requested commit: 8c9c24e09b8a1e1ea92a16edd654a4b27e9ecf94

Commit: 8c9c24e09b8a1e1ea92a16edd654a4b27e9ecf94

Tree: ca9b15c23345a9ed82e0d8f25b28510583cf1b8e

Author: mlugg

Committer: mlugg

## Message

```
compiler: integrate `@compileLog` with incremental compilation

Compile log output is now separated based on the `AnalUnit` which
perfomred the `@compileLog` call, so that we can omit the output for
unreferenced ("dead") units. The units are also sorted when collecting
the `ErrorBundle`, so that compile logs are always printed in a
consistent order, like compile errors are. This is important not only
for incremental compilation, but also for parallel analysis.

Resolves: #23609

```

## Parents

- [6561a98a61bb54c9d6c868f788da3eaa6f48d2c3](https://git.cafe/gitcafe/zig/commit/6561a98a61bb54c9d6c868f788da3eaa6f48d2c3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8c9c24e09b8a1e1ea92a16edd654a4b27e9ecf94?format=markdown)
