[all-commits] [llvm/llvm-project] 963516: [AIX][cmake] Set atomics related macros when build...
bzEq via All-commits
all-commits at lists.llvm.org
Mon Oct 18 02:18:18 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 96351680833e99f0b7161a93ade0a23d7e7e8ba5
https://github.com/llvm/llvm-project/commit/96351680833e99f0b7161a93ade0a23d7e7e8ba5
Author: Kai Luo <lkail at cn.ibm.com>
Date: 2021-10-18 (Mon, 18 Oct 2021)
Changed paths:
M llvm/cmake/modules/CheckAtomic.cmake
Log Message:
-----------
[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
More information about the All-commits
mailing list