[PATCH] D56061: [clang-tools-extra] [clangd] Fix detecting atomics in stand-alone builds

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 3 08:47:16 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE350329: [clangd] Fix detecting atomics in stand-alone builds (authored by mgorny, committed by ).

Repository:
  rCTE Clang Tools Extra

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56061/new/

https://reviews.llvm.org/D56061

Files:
  clangd/CMakeLists.txt


Index: clangd/CMakeLists.txt
===================================================================
--- clangd/CMakeLists.txt
+++ clangd/CMakeLists.txt
@@ -2,6 +2,11 @@
   Support
   )
 
+if(CLANG_BUILT_STANDALONE)
+  # needed to get HAVE_CXX_ATOMICS64_WITHOUT_LIB defined
+  include(CheckAtomic)
+endif()
+
 set(CLANGD_ATOMIC_LIB "")
 if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
   list(APPEND CLANGD_ATOMIC_LIB "atomic")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56061.180087.patch
Type: text/x-patch
Size: 415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190103/c3281879/attachment.bin>


More information about the cfe-commits mailing list