# compiler: Classify libatomic as an alias for compiler-rt\. · gitcafe/zig

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

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

Visibility: public

Requested revision: f8372d030e50b6eec50fd21a387b4d875f81a178

Requested commit: f8372d030e50b6eec50fd21a387b4d875f81a178

Commit: f8372d030e50b6eec50fd21a387b4d875f81a178

Tree: 231dfa77ed8dd0adb49535dbdfedf57860717a34

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
compiler: Classify libatomic as an alias for compiler-rt.

This is a library that ships with GCC and provides fallback implementations of
atomic intrinsics where necessary. Since we do the same in our compiler-rt
implementation, and since some build systems insist on passing -latomic even
for Clang (which zig cc masquerades as), just satisfy this dependency by way of
compiler-rt.

Closes #22165.

```

## Parents

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

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