1set(LLVM_LINK_COMPONENTS 2 Support 3 ) 4 5add_llvm_unittest(SupportTests 6 AlignOfTest.cpp 7 AllocatorTest.cpp 8 ArrayRecyclerTest.cpp 9 BlockFrequencyTest.cpp 10 BranchProbabilityTest.cpp 11 Casting.cpp 12 CommandLineTest.cpp 13 CompressionTest.cpp 14 ConvertUTFTest.cpp 15 DataExtractorTest.cpp 16 EndianTest.cpp 17 ErrorOrTest.cpp 18 FileOutputBufferTest.cpp 19 IteratorTest.cpp 20 LEB128Test.cpp 21 LineIteratorTest.cpp 22 LockFileManagerTest.cpp 23 MD5Test.cpp 24 ManagedStatic.cpp 25 MathExtrasTest.cpp 26 MemoryBufferTest.cpp 27 MemoryTest.cpp 28 Path.cpp 29 ProcessTest.cpp 30 ProgramTest.cpp 31 RegexTest.cpp 32 ScaledNumberTest.cpp 33 SourceMgrTest.cpp 34 SpecialCaseListTest.cpp 35 StreamingMemoryObject.cpp 36 StringPool.cpp 37 SwapByteOrderTest.cpp 38 ThreadLocalTest.cpp 39 TimeValueTest.cpp 40 UnicodeTest.cpp 41 YAMLIOTest.cpp 42 YAMLParserTest.cpp 43 formatted_raw_ostream_test.cpp 44 raw_ostream_test.cpp 45 ) 46 47# ManagedStatic.cpp uses <pthread>. 48if(LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD) 49 target_link_libraries(SupportTests pthread) 50endif() 51