brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 21f10eb Raw
162 lines · plain
1set(LLVM_LINK_COMPONENTS2  Support3  TargetParser4  )5 6add_llvm_unittest(SupportTests7  AddressRangeTest.cpp8  AlignmentTest.cpp9  AlignOfTest.cpp10  AllocatorTest.cpp11  ARMAttributeParser.cpp12  ArrayRecyclerTest.cpp13  Base64Test.cpp14  BinaryStreamTest.cpp15  BLAKE3Test.cpp16  BlockFrequencyTest.cpp17  BalancedPartitioningTest.cpp18  BranchProbabilityTest.cpp19  CachePruningTest.cpp20  CrashRecoveryTest.cpp21  Caching.cpp22  Casting.cpp23  CheckedArithmeticTest.cpp24  Chrono.cpp25  CommandLineTest.cpp26  CompressionTest.cpp27  ConvertEBCDICTest.cpp28  ConvertUTFTest.cpp29  CRCTest.cpp30  CSKYAttributeParserTest.cpp31  DataExtractorTest.cpp32  DebugCounterTest.cpp33  DebugTest.cpp34  DebugLogTest.cpp35  DivisionByConstantTest.cpp36  DJBTest.cpp37  EndianStreamTest.cpp38  EndianTest.cpp39  ELFAttributeParserTest.cpp40  ErrnoTest.cpp41  ErrorOrTest.cpp42  ErrorTest.cpp43  ExponentialBackoffTest.cpp44  ExtensibleRTTITest.cpp45  FileCollectorTest.cpp46  FileOutputBufferTest.cpp47  Format.cpp48  FormatVariadicTest.cpp49  FSUniqueIDTest.cpp50  GenericDomTreeTest.cpp51  GlobPatternTest.cpp52  HashBuilderTest.cpp53  IndexedAccessorTest.cpp54  InstructionCostTest.cpp55  InterleavedRangeTest.cpp56  JobserverTest.cpp57  JSONTest.cpp58  KnownBitsTest.cpp59  LEB128Test.cpp60  LineIteratorTest.cpp61  LockFileManagerTest.cpp62  MatchersTest.cpp63  MD5Test.cpp64  ManagedStatic.cpp65  MathExtrasTest.cpp66  MemoryBufferRefTest.cpp67  MemoryBufferTest.cpp68  MemoryTest.cpp69  MustacheTest.cpp70  ModRefTest.cpp71  NativeFormatTests.cpp72  OptimizedStructLayoutTest.cpp73  ParallelTest.cpp74  Path.cpp75  PerThreadBumpPtrAllocatorTest.cpp76  ProcessTest.cpp77  ProgramTest.cpp78  ProgramStackTest.cpp79  RecyclerTest.cpp80  RegexTest.cpp81  ReverseIterationTest.cpp82  ReplaceFileTest.cpp83  RISCVAttributeParserTest.cpp84  ScaledNumberTest.cpp85  ScopedPrinterTest.cpp86  SHA256.cpp87  SignalsTest.cpp88  SipHashTest.cpp89  SourceMgrTest.cpp90  SpecialCaseListTest.cpp91  SuffixTreeTest.cpp92  SwapByteOrderTest.cpp93  TarWriterTest.cpp94  TextEncodingTest.cpp95  ThreadPool.cpp96  ThreadSafeAllocatorTest.cpp97  Threading.cpp98  TimerTest.cpp99  TimeProfilerTest.cpp100  ToolOutputFileTest.cpp101  TypeNameTest.cpp102  TypeSizeTest.cpp103  TypeTraitsTest.cpp104  TrailingObjectsTest.cpp105  UnicodeTest.cpp106  UTCTimeTest.cpp107  VersionTupleTest.cpp108  VirtualFileSystemTest.cpp109  VirtualOutputBackendTest.cpp110  VirtualOutputBackendsTest.cpp111  VirtualOutputConfigTest.cpp112  VirtualOutputFileTest.cpp113  WithColorTest.cpp114  YAMLIOTest.cpp115  YAMLParserTest.cpp116  buffer_ostream_test.cpp117  formatted_raw_ostream_test.cpp118  raw_fd_stream_test.cpp119  raw_ostream_test.cpp120  raw_ostream_proxy_test.cpp121  raw_pwrite_stream_test.cpp122  raw_sha1_ostream_test.cpp123  raw_socket_stream_test.cpp124  xxhashTest.cpp125 126  DEPENDS127  intrinsics_gen128  )129 130add_subdirectory(LSP)131 132target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)133 134# Disable all warning for AlignOfTest.cpp,135# as it does things intentionally, and there is no reliable way of136# disabling all warnings for all the compilers by using pragmas.137# Don't disable on MSVC, because all incriminated warnings are already disabled138# in source; and because we would otherwise see this warning:139#   cl : Command line warning D9025: overriding '/W4' with '/w'140if(NOT MSVC)141  set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)142endif()143if(MSVC)144  if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )145    # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()146    # generates a warning:147    # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):148    #   warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined149    set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)150  endif()151endif()152 153# ManagedStatic.cpp uses <pthread>.154target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})155 156if(NOT LLVM_INTEGRATED_CRT_ALLOC)157  # The test doesn't pass when using a custom allocator, PR47881.158  add_subdirectory(DynamicLibrary)159endif()160 161add_subdirectory(CommandLineInit)162