[ARM] Masked load and store and predicate tests. NFC
[llvm-complete.git] / unittests / Support / CMakeLists.txt
blobb0a7cda7a4743b03bb5ab7aa544ebd54aca88880
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   FormatVariadicTest.cpp
37   GlobPatternTest.cpp
38   Host.cpp
39   ItaniumManglingCanonicalizerTest.cpp
40   JSONTest.cpp
41   KnownBitsTest.cpp
42   LEB128Test.cpp
43   LineIteratorTest.cpp
44   LockFileManagerTest.cpp
45   MatchersTest.cpp
46   MD5Test.cpp
47   ManagedStatic.cpp
48   MathExtrasTest.cpp
49   MemoryBufferTest.cpp
50   MemoryTest.cpp
51   NativeFormatTests.cpp
52   ParallelTest.cpp
53   Path.cpp
54   ProcessTest.cpp
55   ProgramTest.cpp
56   RegexTest.cpp
57   ReverseIterationTest.cpp
58   ReplaceFileTest.cpp
59   ScaledNumberTest.cpp
60   SourceMgrTest.cpp
61   SpecialCaseListTest.cpp
62   StringPool.cpp
63   SwapByteOrderTest.cpp
64   SymbolRemappingReaderTest.cpp
65   TarWriterTest.cpp
66   TargetParserTest.cpp
67   TaskQueueTest.cpp
68   ThreadLocalTest.cpp
69   ThreadPool.cpp
70   Threading.cpp
71   TimerTest.cpp
72   TypeNameTest.cpp
73   TypeTraitsTest.cpp
74   TrailingObjectsTest.cpp
75   TrigramIndexTest.cpp
76   UnicodeTest.cpp
77   VersionTupleTest.cpp
78   VirtualFileSystemTest.cpp
79   YAMLIOTest.cpp
80   YAMLParserTest.cpp
81   formatted_raw_ostream_test.cpp
82   raw_ostream_test.cpp
83   raw_pwrite_stream_test.cpp
84   raw_sha1_ostream_test.cpp
85   xxhashTest.cpp
86   )
88 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
90 # Disable all warning for AlignOfTest.cpp,
91 # as it does things intentionally, and there is no reliable way of
92 # disabling all warnings for all the compilers by using pragmas.
93 # Don't disable on MSVC, because all incriminated warnings are already disabled
94 # in source; and because we would otherwise see this warning:
95 #   cl : Command line warning D9025: overriding '/W4' with '/w'
96 if(NOT MSVC)
97   set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
98 endif()
99 if(MSVC)
100   if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
101     # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
102     # generates a warning:
103     # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
104     #   warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
105     set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
106   endif()
107 endif()
109 # ManagedStatic.cpp uses <pthread>.
110 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
112 add_subdirectory(DynamicLibrary)