libatomic does not exist on all systems. For example, modern versions of macOS use Clang / LLVM, where atomics are provided by compiler-rt (the default runtime) and thus no extra library needs to be linked.
By only linking with libatomic when it is found, we can avoid build errors on such systems.
libatomic does not exist on all systems. For example, modern versions of macOS use Clang / LLVM, where atomics are provided by compiler-rt (the default runtime) and thus no extra library needs to be linked.
By only linking with libatomic when it is found, we can avoid build errors on such systems.
This PR fixes #15.