[compiler-rt] Use just built libatomic if available

Use libclang_rt.atomic.so instead of the libatomic installed
on the system if it is available.

Differential Revision: https://reviews.llvm.org/D151680

GitOrigin-RevId: 445978ee8c398ddc5d8ae51bc0b0137ce3bb37cb
6 files changed