[PATCH] D44248: [clangd][cmake] Provide libatomic when there is no native support for 64bit atomics

Simon Dardis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 8 04:57:21 PST 2018


sdardis created this revision.
Herald added subscribers: ioeric, jkorous-apple, ilya-biryukov, arichardson, mgorny, klimek.

This addresses a persistent failure on clang-cmake-mips buildbot.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D44248

Files:
  clangd/CMakeLists.txt


Index: clangd/CMakeLists.txt
===================================================================
--- clangd/CMakeLists.txt
+++ 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
   ClangdLSPServer.cpp
   ClangdServer.cpp
@@ -48,6 +53,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.137555.patch
Type: text/x-patch
Size: 554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180308/ffa5e444/attachment.bin>


More information about the cfe-commits mailing list