# compiler-rt: Avoid exposing atomic builtins when not supported · gitcafe/zig

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

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

Visibility: public

Requested revision: 518168edb2378039ba5c058c6e71ea4bc12d704b

Requested commit: 518168edb2378039ba5c058c6e71ea4bc12d704b

Commit: 518168edb2378039ba5c058c6e71ea4bc12d704b

Tree: edc0b78b051415ba8750f4b1ff169cc2a6cc24da

Author: LemonBoy

Committer: LemonBoy

## Message

```
compiler-rt: Avoid exposing atomic builtins when not supported

Let's a void any kind of compilation/LLVM errors for niche targets such
as AVR/MSP430 or ARM v6m. By not exporting any atomic builtin anymore
the user is free to provide their own implementation (that disable the
IRQs) or to provide the --single-threaded switch and forget about this.

```

## Parents

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

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