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