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)
commit5285c120086265bfaca69c3a95e3e8e3a61b291d
tree660a1e44bf6fc8aac0ceba69638dfc9bc0ebe2ae
parent671a29d30d2fe5d5d3bab0123690849f98ac031f
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!

llvm-svn: 230452
llvm/cmake/modules/CheckAtomic.cmake