[PATCH] D41010: [orc][cmake] Check if 8 byte atomics require libatomic for unittest

Simon Dardis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 20 14:27:29 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL321225: [orc][cmake] Check if 8 byte atomics require libatomic for unittest (authored by sdardis, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D41010

Files:
  llvm/trunk/unittests/ExecutionEngine/Orc/CMakeLists.txt


Index: llvm/trunk/unittests/ExecutionEngine/Orc/CMakeLists.txt
===================================================================
--- llvm/trunk/unittests/ExecutionEngine/Orc/CMakeLists.txt
+++ llvm/trunk/unittests/ExecutionEngine/Orc/CMakeLists.txt
@@ -24,4 +24,9 @@
   SymbolStringPoolTest.cpp
   )
 
-target_link_libraries(OrcJITTests PRIVATE ${LLVM_PTHREAD_LIB})
+set(ORC_JIT_TEST_LIBS ${LLVM_PTHREAD_LIB})
+if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
+  list(APPEND ORC_JIT_TEST_LIBS atomic)
+endif()
+
+target_link_libraries(OrcJITTests PRIVATE ${ORC_JIT_TEST_LIBS})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41010.127787.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171220/5145423d/attachment.bin>


More information about the llvm-commits mailing list