6717a1e
From 57127e50bf3cca9f6b9222aea734bc1d232bbb0d Mon Sep 17 00:00:00 2001
6717a1e
From: Tom Stellard <tstellar@redhat.com>
6717a1e
Date: Tue, 28 Feb 2023 19:46:50 +0000
6717a1e
Subject: [PATCH] clangd: Link with -latomic
6717a1e
6717a1e
This fixes the build with clang-14.
6717a1e
6717a1e
https://github.com/llvm/llvm-project/issues/45130
6717a1e
---
6717a1e
 clang-tools-extra/clangd/support/CMakeLists.txt | 4 +---
6717a1e
 1 file changed, 1 insertion(+), 3 deletions(-)
6717a1e
6717a1e
diff --git a/clang-tools-extra/clangd/support/CMakeLists.txt b/clang-tools-extra/clangd/support/CMakeLists.txt
6717a1e
index 0c8c199dd4a4..099f3aa89ef4 100644
6717a1e
--- a/clang-tools-extra/clangd/support/CMakeLists.txt
6717a1e
+++ b/clang-tools-extra/clangd/support/CMakeLists.txt
6717a1e
@@ -11,9 +11,7 @@ if(CLANG_BUILT_STANDALONE)
6717a1e
 endif()
6717a1e
 
6717a1e
 set(CLANGD_ATOMIC_LIB "")
6717a1e
-if(NOT HAVE_CXX_ATOMICS_WITHOUT_LIB OR NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
6717a1e
-  list(APPEND CLANGD_ATOMIC_LIB "atomic")
6717a1e
-endif()
6717a1e
+list(APPEND CLANGD_ATOMIC_LIB "atomic")
6717a1e
 
6717a1e
 add_clang_library(clangdSupport
6717a1e
   Cancellation.cpp
6717a1e
-- 
6717a1e
2.35.1
6717a1e