Rework libatomic handling in CMake and LIT.
authorEric Fiselier <eric@efcs.ca>
Mon, 18 Jul 2016 06:01:50 +0000 (06:01 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 18 Jul 2016 06:01:50 +0000 (06:01 +0000)
commita23470efe73675cedb71693d9253e50a39dcb914
treeb6a71bf5fc8b643db17f985ac62e20214f83808e
parent733f795947646ab20196863af40a67226a22242f
Rework libatomic handling in CMake and LIT.

This patch updates the way libc++ handles checking for libatomic, in part
to prepare for https://reviews.llvm.org/D22073.

Changes:
* 'LIBCXX_HAS_ATOMIC_LIB' is now set whenever libatomic is available even libc++
   doesn't need to manually link it.
* 'LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB' is now used to detect when libatomic
   needs to be manually linked.
* 'LIBCXX_HAS_ATOMIC_LIB' now adds 'libatomic' as a available feature in the
   test suite.

llvm-svn: 275759
libcxx/cmake/Modules/CheckLibcxxAtomic.cmake
libcxx/lib/CMakeLists.txt
libcxx/test/CMakeLists.txt
libcxx/test/libcxx/test/config.py
libcxx/test/lit.site.cfg.in