1 set(LLVM_LINK_COMPONENTS
5 add_llvm_unittest(SupportTests
12 BlockFrequencyTest.cpp
13 BranchProbabilityTest.cpp
17 CheckedArithmeticTest.cpp
33 FileOutputBufferTest.cpp
34 FormatVariadicTest.cpp
37 ItaniumManglingCanonicalizerTest.cpp
42 LockFileManagerTest.cpp
55 ReverseIterationTest.cpp
59 SpecialCaseListTest.cpp
62 SymbolRemappingReaderTest.cpp
72 TrailingObjectsTest.cpp
76 VirtualFileSystemTest.cpp
79 formatted_raw_ostream_test.cpp
81 raw_pwrite_stream_test.cpp
82 raw_sha1_ostream_test.cpp
86 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
88 # Disable all warning for AlignOfTest.cpp,
89 # as it does things intentionally, and there is no reliable way of
90 # disabling all warnings for all the compilers by using pragmas.
91 # Don't disable on MSVC, because all incriminated warnings are already disabled
92 # in source; and because we would otherwise see this warning:
93 # cl : Command line warning D9025: overriding '/W4' with '/w'
95 set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
98 if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
99 # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
100 # generates a warning:
101 # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
102 # warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
103 set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
107 # ManagedStatic.cpp uses <pthread>.
108 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
110 add_subdirectory(DynamicLibrary)