[PATCH] D69444: [Support] Check for atomics64 when deciding if '-latomic' is needed

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 23:57:13 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd4a4a32cd94e: [Support] Check for atomics64 when deciding if '-latomic'  is needed (authored by gokturk, committed by luismarques).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69444

Files:
  llvm/lib/Support/CMakeLists.txt


Index: llvm/lib/Support/CMakeLists.txt
===================================================================
--- llvm/lib/Support/CMakeLists.txt
+++ llvm/lib/Support/CMakeLists.txt
@@ -26,7 +26,7 @@
       set(system_libs ${system_libs} ${TERMINFO_LIBS})
     endif()
   endif()
-  if( LLVM_ENABLE_THREADS AND HAVE_LIBATOMIC )
+  if( LLVM_ENABLE_THREADS AND (HAVE_LIBATOMIC OR HAVE_CXX_LIBATOMICS64) )
     set(system_libs ${system_libs} atomic)
   endif()
   set(system_libs ${system_libs} ${LLVM_PTHREAD_LIB})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69444.245089.patch
Type: text/x-patch
Size: 510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200218/bc0bd6ac/attachment.bin>


More information about the llvm-commits mailing list