OSDN Git Service

Repair cmake libatomic check.
authorJames Y Knight <jyknight@google.com>
Tue, 16 Jun 2015 14:00:01 +0000 (14:00 +0000)
committerJames Y Knight <jyknight@google.com>
Tue, 16 Jun 2015 14:00:01 +0000 (14:00 +0000)
commitcc73f106483f3bd8af7bf9a2bec76ed5206d38f9
treecb29885ac5f76d704ab5cfec86195562b56706bd
parentb17a563e9a99e5645e7b618958917e4be0034715
Repair cmake libatomic check.

The cmake check for whether libatomic could be used had been
unconditionally setting the result to false. Which was somewhat
fortunate, because the prerequisite check for whether it was *needed*
was always claiming it was, even if it was not.

However, this made platforms where libatomic is actually necessary
fail to link.

Differential Revision: http://reviews.llvm.org/D10453

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