[PATCH] D44248: [clangd][cmake] Provide libatomic when there is no native support for 64bit atomics
Simon Dardis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 3 02:43:22 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL329053: [clangd][cmake] Provide libatomic when there is no native support for 64bit… (authored by sdardis, committed by ).
Herald added subscribers: llvm-commits, MaskRay.
Changed prior to commit:
https://reviews.llvm.org/D44248?vs=137555&id=140750#toc
Repository:
rL LLVM
https://reviews.llvm.org/D44248
Files:
clang-tools-extra/trunk/clangd/CMakeLists.txt
Index: clang-tools-extra/trunk/clangd/CMakeLists.txt
===================================================================
--- clang-tools-extra/trunk/clangd/CMakeLists.txt
+++ clang-tools-extra/trunk/clangd/CMakeLists.txt
@@ -2,6 +2,11 @@
Support
)
+set(CLANGD_ATOMIC_LIB "")
+if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
+ list(APPEND CLANGD_ATOMIC_LIB "atomic")
+endif()
+
add_clang_library(clangDaemon
AST.cpp
ClangdLSPServer.cpp
@@ -50,6 +55,7 @@
clangToolingCore
clangToolingRefactor
${LLVM_PTHREAD_LIB}
+ ${CLANGD_ATOMIC_LIB}
)
if( LLVM_LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44248.140750.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180403/0030c8a5/attachment.bin>
More information about the llvm-commits
mailing list