# stage2: fix Cache deadlock and build more of TSAN · gitcafe/zig

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

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

Visibility: public

Requested revision: 8219d92987c7d9641d6b24c4d5be29e3a80fd6b9

Requested commit: 8219d92987c7d9641d6b24c4d5be29e3a80fd6b9

Commit: 8219d92987c7d9641d6b24c4d5be29e3a80fd6b9

Tree: 026578eeb7d11f5813d081025763f064401536e1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix Cache deadlock and build more of TSAN

 * rename is_compiler_rt_or_libc to skip_linker_dependencies
   and set it to `true` for all sub-Compilations. I believe
   this resolves the deadlock we were experiencing on Drone
   CI and on some users' computers. I will remove the CI workaround in
   a follow-up commit.
 * enabling TSAN automatically causes the Compilation to link against
   libc++ even if not requested, because TSAN depends on libc++.
 * add -fno-rtti flags where appropriate when building TSAN objects.
   Thanks Firefox317 for pointing this out.
 * TSAN support: resolve all the undefined symbols. We are still seeing
   a dependency on __gcc_personality_v0 but will resolve this one in a
   follow-up commit.
 * static libs do not try to build libc++ or libc++abi.

```

## Parents

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

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