xref: /llvm-project/llvm/utils/gn/build/libs/atomic/BUILD.gn (revision 5f3b38e17313c8c703357cf0567eeb9032cb086d)
1config("atomic_config") {
2  visibility = [ ":atomic" ]
3  libs = [ "atomic" ]
4}
5
6group("atomic") {
7  # Needed on platforms that have no native support for 64-bit atomics.
8  # FIXME: Check which platforms need this; certainly needs to be false on
9  # macOS and Windows, and doesn't seem to be needed on Linux either.
10  needs_explicit_lib_atomic = false
11  if (needs_explicit_lib_atomic) {
12    public_configs = [ ":atomic_config" ]
13  }
14}
15