On some target like MIPS32 we need to explicitly link atomic library for 64 bit atomic operations. This module then can be used in LLDB (http://reviews.llvm.org/D20464) or Libcxx (http://reviews.llvm.org/D16613) for explicitly link to atomic library.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
My own comments:
This looks fine since it removes code duplication across multiple
subprojects. Have you tested that both libcxx and lldb work correctly when
using this module as opposed to the existing ones?
Comment Actions
This seems generally fine but:
- I'd love Chris B to look at this to make sure he likes it too.
- Pretty sure LLVM itself needs to use this. Can you update LLVM's CMake to switch to this routine?
Comment Actions
This looks reasonable to me. Is there a reason for having this as a new CMake module instead of just adding it to CheckAtomic.cmake?
It seems to me it could be reasonable to modify CheckAtomic.cmake to test for both 32-bit and 64-bit atomics.
Comment Actions
This module work fine with LLDB but need to check with libcxx. I will check and let you know.