Link liblldCOFF against libatomic when necessary
authorSam James <sam@gentoo.org>
Wed, 19 Oct 2022 19:09:34 +0000 (20:09 +0100)
committerTom Stellard <tstellar@redhat.com>
Fri, 11 Nov 2022 01:04:34 +0000 (17:04 -0800)
commit4c3d83810ad7bde70b2665df9a15947695e92adb
tree90d1d0816631b99a2b737ffdb7dc43e92d0c0b0f
parentd75ae21044ad893572855cefb0c0898a771b2094
Link liblldCOFF against libatomic when necessary

Also simplify code for liblldCommon using the new LLVM_ATOMIC_LIB variable.

Depends on D136280.

Bug: https://bugs.gentoo.org/832675
Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Tested-by: erhard_f@mailbox.org <erhard_f@mailbox.org>
Differential Revision: https://reviews.llvm.org/D136281

(cherry picked from commit f0b451c77f14947e3e7d314f048679fa2f5c6298)
lld/COFF/CMakeLists.txt
lld/Common/CMakeLists.txt