[CMake] If the compiler supports _Atomic include atomic.c in builtins libraries
authorChris Bieneman <beanz@apple.com>
Fri, 12 Aug 2016 01:29:26 +0000 (01:29 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 12 Aug 2016 01:29:26 +0000 (01:29 +0000)
commit98ee3de514f5bdd997c49edb03d80c150537b1ae
treebd09d72d184639927659b0713e32e46dce95f536
parentf34d0e0875ce48c68ccc746c873a5f379e6cb1b4
[CMake] If the compiler supports _Atomic include atomic.c in builtins libraries

This fixes a long-standing TODO by implementing a compiler check for supporting the _Atomic keyword. If the _Atomic keyword is supported by the compiler we should include it in the builtin library sources.

llvm-svn: 278454
compiler-rt/cmake/Modules/BuiltinTests.cmake
compiler-rt/cmake/builtin-config-ix.cmake
compiler-rt/lib/builtins/CMakeLists.txt