Reland "[clang-tools-extra] fix the check for if '-latomic' is necessary""

The buildbot failures on MSVC should have been fixed by f128f442a3.
This commit is contained in:
Gokturk Yuksek 2020-02-17 16:38:59 +00:00 committed by Luís Marques
parent d9e8b2cbcc
commit 351ed50dcb
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ if(CLANG_BUILT_STANDALONE)
endif()
set(CLANGD_ATOMIC_LIB "")
if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
if(NOT HAVE_CXX_ATOMICS_WITHOUT_LIB OR NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
list(APPEND CLANGD_ATOMIC_LIB "atomic")
endif()