[DAGCombiner] Eliminate dead stores to stack.
[llvm-complete.git] / unittests / Support / CMakeLists.txt
blob40bf939400249548d5522f1faaad7887a27af6c7
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
5 add_llvm_unittest(SupportTests
6   AlignOfTest.cpp
7   AllocatorTest.cpp
8   ARMAttributeParser.cpp
9   ArrayRecyclerTest.cpp
10   BinaryStreamTest.cpp
11   BlockFrequencyTest.cpp
12   BranchProbabilityTest.cpp
13   CachePruningTest.cpp
14   CrashRecoveryTest.cpp
15   Casting.cpp
16   CheckedArithmeticTest.cpp
17   Chrono.cpp
18   CommandLineTest.cpp
19   CompressionTest.cpp
20   ConvertUTFTest.cpp
21   DataExtractorTest.cpp
22   DebugTest.cpp
23   DebugCounterTest.cpp
24   DJBTest.cpp
25   EndianStreamTest.cpp
26   EndianTest.cpp
27   ErrnoTest.cpp
28   ErrorOrTest.cpp
29   ErrorTest.cpp
30   FileOutputBufferTest.cpp
31   FormatVariadicTest.cpp
32   GlobPatternTest.cpp
33   Host.cpp
34   ItaniumManglingCanonicalizerTest.cpp
35   JSONTest.cpp
36   LEB128Test.cpp
37   LineIteratorTest.cpp
38   LockFileManagerTest.cpp
39   MD5Test.cpp
40   ManagedStatic.cpp
41   MathExtrasTest.cpp
42   MemoryBufferTest.cpp
43   MemoryTest.cpp
44   NativeFormatTests.cpp
45   ParallelTest.cpp
46   Path.cpp
47   ProcessTest.cpp
48   ProgramTest.cpp
49   RegexTest.cpp
50   ReverseIterationTest.cpp
51   ReplaceFileTest.cpp
52   ScaledNumberTest.cpp
53   SourceMgrTest.cpp
54   SpecialCaseListTest.cpp
55   StringPool.cpp
56   SwapByteOrderTest.cpp
57   SymbolRemappingReaderTest.cpp
58   TarWriterTest.cpp
59   TargetParserTest.cpp
60   TaskQueueTest.cpp
61   ThreadLocalTest.cpp
62   ThreadPool.cpp
63   Threading.cpp
64   TimerTest.cpp
65   TypeNameTest.cpp
66   TypeTraitsTest.cpp
67   TrailingObjectsTest.cpp
68   TrigramIndexTest.cpp
69   UnicodeTest.cpp
70   VersionTupleTest.cpp
71   VirtualFileSystemTest.cpp
72   YAMLIOTest.cpp
73   YAMLParserTest.cpp
74   formatted_raw_ostream_test.cpp
75   raw_ostream_test.cpp
76   raw_pwrite_stream_test.cpp
77   raw_sha1_ostream_test.cpp
78   xxhashTest.cpp
79   )
81 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
83 # Disable all warning for AlignOfTest.cpp,
84 # as it does things intentionally, and there is no reliable way of
85 # disabling all warnings for all the compilers by using pragmas.
86 # Don't disable on MSVC, because all incriminated warnings are already disabled
87 # in source; and because we would otherwise see this warning:
88 #   cl : Command line warning D9025: overriding '/W4' with '/w'
89 if(NOT MSVC)
90   set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
91 endif()
92 if(MSVC)
93   if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
94     # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
95     # generates a warning:
96     # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
97     #   warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
98     set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
99   endif()
100 endif()
102 # ManagedStatic.cpp uses <pthread>.
103 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
105 add_subdirectory(DynamicLibrary)