build: check if atomic routines are implicitly provided
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 25 Feb 2015 02:38:03 +0000 (02:38 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 25 Feb 2015 02:38:03 +0000 (02:38 +0000)
commitfb5edaa05c960aaa53d19ad99af6cea7977cade9
tree1477d49ae9f8b52cd0f8bb5b0aa646e5574cbbfd
parent2013f8f1b24e655ad591bac2f9765bf5291ba227
build: check if atomic routines are implicitly provided

It is possible for the atomic routines to be provided by the compiler without
requiring any additional libraries.  Check if that is the case before checking
for a library.

Patch by Matt Glazar!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230452 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/CheckAtomic.cmake