1 set(LLVM_LINK_COMPONENTS
5 add_llvm_unittest(SupportTests
10 ARMAttributeParser.cpp
13 BlockFrequencyTest.cpp
14 BranchProbabilityTest.cpp
18 CheckedArithmeticTest.cpp
35 FileOutputBufferTest.cpp
36 FormatVariadicTest.cpp
39 ItaniumManglingCanonicalizerTest.cpp
44 LockFileManagerTest.cpp
57 ReverseIterationTest.cpp
61 SpecialCaseListTest.cpp
64 SymbolRemappingReaderTest.cpp
74 TrailingObjectsTest.cpp
78 VirtualFileSystemTest.cpp
81 formatted_raw_ostream_test.cpp
83 raw_pwrite_stream_test.cpp
84 raw_sha1_ostream_test.cpp
88 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
90 # Disable all warning for AlignOfTest.cpp,
91 # as it does things intentionally, and there is no reliable way of
92 # disabling all warnings for all the compilers by using pragmas.
93 # Don't disable on MSVC, because all incriminated warnings are already disabled
94 # in source; and because we would otherwise see this warning:
95 # cl : Command line warning D9025: overriding '/W4' with '/w'
97 set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
100 if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
101 # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
102 # generates a warning:
103 # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
104 # warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
105 set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
109 # ManagedStatic.cpp uses <pthread>.
110 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
112 add_subdirectory(DynamicLibrary)