X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=unittests%2FSupport%2FCMakeLists.txt;h=33016fc8037cc83704ea7816b2377c882b041711;hb=69078b594c8586d40dc367b3e20237a9f3f7a1a4;hp=641163e39ed3c91f6d31b0e0939d5a11259b1c16;hpb=d04333d38b8fd9914389c21267fa3859b9ebe0b7;p=android-x86%2Fexternal-llvm.git diff --git a/unittests/Support/CMakeLists.txt b/unittests/Support/CMakeLists.txt index 641163e39ed..33016fc8037 100644 --- a/unittests/Support/CMakeLists.txt +++ b/unittests/Support/CMakeLists.txt @@ -13,15 +13,16 @@ add_llvm_unittest(SupportTests CachePruningTest.cpp CrashRecoveryTest.cpp Casting.cpp + CheckedArithmeticTest.cpp Chrono.cpp CommandLineTest.cpp CompressionTest.cpp ConvertUTFTest.cpp DataExtractorTest.cpp DebugTest.cpp + DJBTest.cpp EndianStreamTest.cpp EndianTest.cpp - ErrnoTest.cpp ErrorOrTest.cpp ErrorTest.cpp FileOutputBufferTest.cpp @@ -42,6 +43,7 @@ add_llvm_unittest(SupportTests ProcessTest.cpp ProgramTest.cpp RegexTest.cpp + ReverseIterationTest.cpp ReplaceFileTest.cpp ScaledNumberTest.cpp SourceMgrTest.cpp @@ -67,12 +69,14 @@ add_llvm_unittest(SupportTests xxhashTest.cpp ) +target_link_libraries(SupportTests PRIVATE LLVMTestingSupport) + # Disable all warning for AlignOfTest.cpp, # as it does things intentionally, and there is no reliable way of # disabling all warnings for all the compilers by using pragmas. set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w) # ManagedStatic.cpp uses . -target_link_libraries(SupportTests LLVMTestingSupport ${LLVM_PTHREAD_LIB}) +target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB}) add_subdirectory(DynamicLibrary)