[yaml2obj/obj2yaml] - Add support for .stack_sizes sections.
[llvm-complete.git] / unittests / Support / CMakeLists.txt
blob161891517cf376bd1cc885f4b5c679ec00598931
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
5 add_llvm_unittest(SupportTests
6   AlignmentTest.cpp
7   AlignOfTest.cpp
8   AllocatorTest.cpp
9   AnnotationsTest.cpp
10   ARMAttributeParser.cpp
11   ArrayRecyclerTest.cpp
12   BinaryStreamTest.cpp
13   BlockFrequencyTest.cpp
14   BranchProbabilityTest.cpp
15   CachePruningTest.cpp
16   CrashRecoveryTest.cpp
17   Casting.cpp
18   CheckedArithmeticTest.cpp
19   Chrono.cpp
20   CommandLineTest.cpp
21   CompressionTest.cpp
22   ConvertUTFTest.cpp
23   CRCTest.cpp
24   DataExtractorTest.cpp
25   DebugTest.cpp
26   DebugCounterTest.cpp
27   DJBTest.cpp
28   EndianStreamTest.cpp
29   EndianTest.cpp
30   ErrnoTest.cpp
31   ErrorOrTest.cpp
32   ErrorTest.cpp
33   FileCheckTest.cpp
34   FileCollectorTest.cpp
35   FileOutputBufferTest.cpp
36   FileUtilitiesTest.cpp
37   FormatVariadicTest.cpp
38   GlobPatternTest.cpp
39   Host.cpp
40   ItaniumManglingCanonicalizerTest.cpp
41   JSONTest.cpp
42   KnownBitsTest.cpp
43   LEB128Test.cpp
44   LineIteratorTest.cpp
45   LockFileManagerTest.cpp
46   MatchersTest.cpp
47   MD5Test.cpp
48   ManagedStatic.cpp
49   MathExtrasTest.cpp
50   MemoryBufferTest.cpp
51   MemoryTest.cpp
52   NativeFormatTests.cpp
53   ParallelTest.cpp
54   Path.cpp
55   ProcessTest.cpp
56   ProgramTest.cpp
57   RegexTest.cpp
58   ReverseIterationTest.cpp
59   ReplaceFileTest.cpp
60   ScaledNumberTest.cpp
61   SourceMgrTest.cpp
62   SpecialCaseListTest.cpp
63   StringPool.cpp
64   SwapByteOrderTest.cpp
65   SymbolRemappingReaderTest.cpp
66   TarWriterTest.cpp
67   TargetParserTest.cpp
68   TaskQueueTest.cpp
69   ThreadLocalTest.cpp
70   ThreadPool.cpp
71   Threading.cpp
72   TimerTest.cpp
73   TypeNameTest.cpp
74   TypeTraitsTest.cpp
75   TrailingObjectsTest.cpp
76   TrigramIndexTest.cpp
77   UnicodeTest.cpp
78   VersionTupleTest.cpp
79   VirtualFileSystemTest.cpp
80   YAMLIOTest.cpp
81   YAMLParserTest.cpp
82   formatted_raw_ostream_test.cpp
83   raw_ostream_test.cpp
84   raw_pwrite_stream_test.cpp
85   raw_sha1_ostream_test.cpp
86   xxhashTest.cpp
87   )
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'
97 if(NOT MSVC)
98   set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
99 endif()
100 if(MSVC)
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)
107   endif()
108 endif()
110 # ManagedStatic.cpp uses <pthread>.
111 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
113 add_subdirectory(DynamicLibrary)