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

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

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

Visibility: public

Requested revision: 64a590a31194a778b494937e2f91642b80e3f4d0

Requested commit: 64a590a31194a778b494937e2f91642b80e3f4d0

Commit: 64a590a31194a778b494937e2f91642b80e3f4d0

Tree: c5c79449e05be5d03ae436283d20ce2ff256a90f

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

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

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