diff options
author | Kai Luo <lkail@cn.ibm.com> | 2021-10-18 09:17:04 +0000 |
---|---|---|
committer | Kai Luo <lkail@cn.ibm.com> | 2021-10-18 09:18:05 +0000 |
commit | 96351680833e99f0b7161a93ade0a23d7e7e8ba5 (patch) | |
tree | 7fab4f5620ed4c3c0f8d460cbab2f933ac5f369e /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 3d850d03ae4d167f929c4469f858446d4a866c01 (diff) | |
download | llvm-96351680833e99f0b7161a93ade0a23d7e7e8ba5.zip llvm-96351680833e99f0b7161a93ade0a23d7e7e8ba5.tar.gz llvm-96351680833e99f0b7161a93ade0a23d7e7e8ba5.tar.bz2 |
[AIX][cmake] Set atomics related macros when build with xlclang
Set `HAVE_CXX_ATOMICS_WITHOUT_LIB` or `HAVE_LIBATOMIC` when build LLVM with xlclang. With these macros set, libraries like libLLVMSupport are able to know whether it's necessary to add `-latomic` to dependent system libs. If `HAVE_LIBATOMIC` is set, `llvm-config --system-libs` appends `-latomic` to its output.
Reviewed By: jsji
Differential Revision: https://reviews.llvm.org/D111782
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions