Debian Codegraph @

llvm/unittests/Support/CMakeLists.txt

raw
1 set(LLVM_LINK_COMPONENTS
2 Support
3 TargetParser
4 )
5
6 add_llvm_unittest(SupportTests
7 AddressRangeTest.cpp
8 AlignmentTest.cpp
9 AlignOfTest.cpp
10 AllocatorTest.cpp
11 ARMAttributeParser.cpp
12 ArrayRecyclerTest.cpp
13 Base64Test.cpp
14 BinaryStreamTest.cpp
15 BLAKE3Test.cpp
16 BlockFrequencyTest.cpp
17 BalancedPartitioningTest.cpp
18 BranchProbabilityTest.cpp
19 CachePruningTest.cpp
20 CrashRecoveryTest.cpp
21 Caching.cpp
22 Casting.cpp
23 CheckedArithmeticTest.cpp
24 Chrono.cpp
25 CommandLineTest.cpp
26 CompressionTest.cpp
27 ConvertEBCDICTest.cpp
28 ConvertUTFTest.cpp
29 CRCTest.cpp
30 CSKYAttributeParserTest.cpp
31 DataExtractorTest.cpp
32 DebugCounterTest.cpp
33 DebugTest.cpp
34 DivisionByConstantTest.cpp
35 DJBTest.cpp
36 EndianStreamTest.cpp
37 EndianTest.cpp
38 ELFAttributeParserTest.cpp
39 ErrnoTest.cpp
40 ErrorOrTest.cpp
41 ErrorTest.cpp
42 ExponentialBackoffTest.cpp
43 ExtensibleRTTITest.cpp
44 FileCollectorTest.cpp
45 FileOutputBufferTest.cpp
46 FormatVariadicTest.cpp
47 FSUniqueIDTest.cpp
48 GenericDomTreeTest.cpp
49 GlobPatternTest.cpp
50 HashBuilderTest.cpp
51 IndexedAccessorTest.cpp
52 InstructionCostTest.cpp
53 InterleavedRangeTest.cpp
54 JSONTest.cpp
55 KnownBitsTest.cpp
56 LEB128Test.cpp
57 LineIteratorTest.cpp
58 LockFileManagerTest.cpp
59 MatchersTest.cpp
60 MD5Test.cpp
61 ManagedStatic.cpp
62 MathExtrasTest.cpp
63 MemoryBufferRefTest.cpp
64 MemoryBufferTest.cpp
65 MemoryTest.cpp
66 MustacheTest.cpp
67 ModRefTest.cpp
68 NativeFormatTests.cpp
69 OptimizedStructLayoutTest.cpp
70 ParallelTest.cpp
71 Path.cpp
72 PerThreadBumpPtrAllocatorTest.cpp
73 ProcessTest.cpp
74 ProgramTest.cpp
75 ProgramStackTest.cpp
76 RecyclerTest.cpp
77 RegexTest.cpp
78 ReverseIterationTest.cpp
79 ReplaceFileTest.cpp
80 RISCVAttributeParserTest.cpp
81 ScaledNumberTest.cpp
82 ScopedPrinterTest.cpp
83 SHA256.cpp
84 SignalsTest.cpp
85 SipHashTest.cpp
86 SourceMgrTest.cpp
87 SpecialCaseListTest.cpp
88 SuffixTreeTest.cpp
89 SwapByteOrderTest.cpp
90 TarWriterTest.cpp
91 TextEncodingTest.cpp
92 ThreadPool.cpp
93 ThreadSafeAllocatorTest.cpp
94 Threading.cpp
95 TimerTest.cpp
96 TimeProfilerTest.cpp
97 ToolOutputFileTest.cpp
98 TypeNameTest.cpp
99 TypeSizeTest.cpp
100 TypeTraitsTest.cpp
101 TrailingObjectsTest.cpp
102 UnicodeTest.cpp
103 UTCTimeTest.cpp
104 VersionTupleTest.cpp
105 VirtualFileSystemTest.cpp
106 WithColorTest.cpp
107 YAMLIOTest.cpp
108 YAMLParserTest.cpp
109 buffer_ostream_test.cpp
110 formatted_raw_ostream_test.cpp
111 raw_fd_stream_test.cpp
112 raw_ostream_test.cpp
113 raw_pwrite_stream_test.cpp
114 raw_sha1_ostream_test.cpp
115 raw_socket_stream_test.cpp
116 xxhashTest.cpp
117
118 DEPENDS
119 intrinsics_gen
120 )
121
122 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
123
124 # Disable all warning for AlignOfTest.cpp,
125 # as it does things intentionally, and there is no reliable way of
126 # disabling all warnings for all the compilers by using pragmas.
127 # Don't disable on MSVC, because all incriminated warnings are already disabled
128 # in source; and because we would otherwise see this warning:
129 # cl : Command line warning D9025: overriding '/W4' with '/w'
130 if(NOT MSVC)
131 set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
132 endif()
133 if(MSVC)
134 if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
135 # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
136 # generates a warning:
137 # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
138 # warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
139 set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
140 endif()
141 endif()
142
143 # ManagedStatic.cpp uses <pthread>.
144 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
145
146 if(NOT LLVM_INTEGRATED_CRT_ALLOC)
147 # The test doesn't pass when using a custom allocator, PR47881.
148 add_subdirectory(DynamicLibrary)
149 endif()
150
151 add_subdirectory(CommandLineInit)