1 set(LLVM_LINK_COMPONENTS
5 add_llvm_unittest(SupportTests
11 BlockFrequencyTest.cpp
12 BranchProbabilityTest.cpp
16 CheckedArithmeticTest.cpp
30 FileOutputBufferTest.cpp
31 FormatVariadicTest.cpp
34 ItaniumManglingCanonicalizerTest.cpp
38 LockFileManagerTest.cpp
50 ReverseIterationTest.cpp
54 SpecialCaseListTest.cpp
57 SymbolRemappingReaderTest.cpp
67 TrailingObjectsTest.cpp
71 VirtualFileSystemTest.cpp
74 formatted_raw_ostream_test.cpp
76 raw_pwrite_stream_test.cpp
77 raw_sha1_ostream_test.cpp
81 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
83 # Disable all warning for AlignOfTest.cpp,
84 # as it does things intentionally, and there is no reliable way of
85 # disabling all warnings for all the compilers by using pragmas.
86 # Don't disable on MSVC, because all incriminated warnings are already disabled
87 # in source; and because we would otherwise see this warning:
88 # cl : Command line warning D9025: overriding '/W4' with '/w'
90 set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
93 if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
94 # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
95 # generates a warning:
96 # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
97 # warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
98 set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
102 # ManagedStatic.cpp uses <pthread>.
103 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
105 add_subdirectory(DynamicLibrary)