rL319838 introduced SymbolStringPool which uses 8 byte atomics for
reference counters. On systems which do not support such atomics
natively such as MIPS32, explicitly add libatomic as one of the
libraries for SymbolStringPool's unittest.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'm going to nitpick here a little. The patch is fine, but one of two things should change. Either line 29 should use list(APPEND...) instead of set, or you should do something more like:
if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB) set(ORC_TEST_ATOMIC_LIB atomic) endif() target_link_libraries(OrcJITTests PRIVATE ${LLVM_PTHREAD_LIB} ${ORC_TEST_ATOMIC_LIB})