[Support] Check for atomics64 when deciding if '-latomic' is needed
authorGokturk Yuksek <gokturk@binghamton.edu>
Tue, 18 Feb 2020 07:52:29 +0000 (07:52 +0000)
committerLuís Marques <luismarques@lowrisc.org>
Tue, 18 Feb 2020 07:54:54 +0000 (07:54 +0000)
commitd4a4a32cd94eccbaaa4608b0daac8b820e041214
treef117bc493d2e6441faa8f028214afb67747ebd9e
parentb0866f61c127e27855b88873503cbcd5c2e49212
[Support] Check for atomics64 when deciding if '-latomic'  is needed

The CheckAtomic module performs two tests to determine if passing
'-latomic' to the linker is required: one for 64-bit atomics, and
another for non-64-bit atomics. Include the missing check for 64-bit
atomics.

Reviewers: beanz, compnerd
Reviewed By: beanz, compnerd
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69444
llvm/lib/Support/CMakeLists.txt