Re-commit "Introduce a cmake module to figure out whether we need to link with libato...
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 11 Feb 2016 12:43:04 +0000 (12:43 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 11 Feb 2016 12:43:04 +0000 (12:43 +0000)
commitd247ac44cc9d52d7dfa15cb3d1785c554ea66e81
tree26adedfce58aae7db6f64abbb86b7bade077c782
parent45c4d45ead268d66f754248e686dfdb735a79f9c
Re-commit "Introduce a cmake module to figure out whether we need to link with libatomic."

This re-applies commit r260235. However, this time we add -gcc-toolchain
to the compiler's flags when the user has specified the LIBCXX_GCC_TOOLCHAIN
variable.

llvm-svn: 260515
libcxx/cmake/Modules/CheckLibcxxAtomic.cmake [new file with mode: 0644]
libcxx/cmake/config-ix.cmake
libcxx/lib/CMakeLists.txt
libcxx/test/CMakeLists.txt
libcxx/test/libcxx/test/target_info.py
libcxx/test/lit.site.cfg.in