diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2022-07-27 12:30:18 +0200 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2022-08-02 01:47:41 -0700 |
commit | 73d45fea656b1c15c20dd96b386d6004638ae7f3 (patch) | |
tree | b9158aa5d0ab86e6c2504467f6a9f39292afa33a /llvm/lib/Support/CMakeLists.txt | |
parent | 3928c126568de5f45d46c68cff12dbc88a40a250 (diff) |
[compiler-rt][Sanitizer] Link sanitizer libs with -latomic on SPARC
When building on Linux/sparc64, the 32-bit `libclang_rt.asan.so`,
`libclang_rt.ubsan_minimal.so`, and `libclang_rt.ubsan_standalone.so`
failed to link with undefined references to 64-bit atomics, which `clang`
cannot inline. Even D130569 <https://reviews.llvm.org/D130569> didn't help
because those libraries are linked with `-nodefaultlibs`, so dependent
libraries need to be added explicitly.
That's what this patch does.
Tested on `sparc64-unknown-linux-gnu` and `sparcv9-sun-solaris2.11`.
Differential Revision: https://reviews.llvm.org/D130571
(cherry picked from commit 0b2d5fd48bc281af89e5e7bfa33a3054b826ed52)
Diffstat (limited to 'llvm/lib/Support/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions