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
37 FormatVariadicTest.cpp
40 ItaniumManglingCanonicalizerTest.cpp
45 LockFileManagerTest.cpp
58 ReverseIterationTest.cpp
62 SpecialCaseListTest.cpp
65 SymbolRemappingReaderTest.cpp
75 TrailingObjectsTest.cpp
79 VirtualFileSystemTest.cpp
82 formatted_raw_ostream_test.cpp
84 raw_pwrite_stream_test.cpp
85 raw_sha1_ostream_test.cpp
89 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
91 # Disable all warning for AlignOfTest.cpp,
92 # as it does things intentionally, and there is no reliable way of
93 # disabling all warnings for all the compilers by using pragmas.
94 # Don't disable on MSVC, because all incriminated warnings are already disabled
95 # in source; and because we would otherwise see this warning:
96 # cl : Command line warning D9025: overriding '/W4' with '/w'
98 set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
101 if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
102 # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
103 # generates a warning:
104 # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
105 # warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
106 set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
110 # ManagedStatic.cpp uses <pthread>.
111 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
113 add_subdirectory(DynamicLibrary)