# stage2: detect redundant C/C\+\+ source files · gitcafe/zig

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

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

Visibility: public

Requested revision: fd4c98cbb7af337895f003d83d6cd2fb3447d6c2

Requested commit: fd4c98cbb7af337895f003d83d6cd2fb3447d6c2

Commit: fd4c98cbb7af337895f003d83d6cd2fb3447d6c2

Tree: 463edc33a5093b5d255164fb04c278beedf9a963

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: detect redundant C/C++ source files

Cache exposes BinDigest.

Compilation gains a set of a BinDigest for every C/C++ source file. We
detect when the same source/flags have already been added and emit a
compile error. This prevents a deadlock in the caching system.

Closes #7308

```

## Parents

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

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