# compiler_rt: disable spinlocks for atomic instrinsics for bpf · gitcafe/zig

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

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

Visibility: public

Requested revision: 00966b7258bdf56fe2cc653b30b4d4352d8fe14f

Requested commit: 00966b7258bdf56fe2cc653b30b4d4352d8fe14f

Commit: 00966b7258bdf56fe2cc653b30b4d4352d8fe14f

Tree: b83b8ada56e9660f01482babb74f0cb54a0c3ccf

Author: Kenta Iwasaki

Committer: Andrew Kelley

## Message

```
compiler_rt: disable spinlocks for atomic instrinsics for bpf

The BPF target does not support mutable global variables. Mark the BPF
target as a target that does not support atomic variables in order to
avoid including the global spinlock table provided in compiler_rt.

```

## Parents

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

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