mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
c3c7a59967
This relands e9a3d1a401b07cbf7b11695637f1b549782a26cd which was originally missing linking LLVMSupport into LLMVFileCheck which broke the SHARED_LIBS build. Original summary: The actual FileCheck logic seems to be implemented in LLVMSupport. I don't see a good reason for having FileCheck implemented there as it has a very specific use while LLVMSupport is a dependency of pretty much every LLVM tool there is. In fact, the only use of FileCheck I could find (outside the FileCheck tool and the FileCheck unit test) is a single call in GISelMITest.h. This moves the FileCheck logic to its own LLVMFileCheck library. This way only FileCheck and the GlobalISelTests now have a dependency on this code. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D86344
49 lines
1.4 KiB
CMake
49 lines
1.4 KiB
CMake
add_custom_target(UnitTests)
|
|
set_target_properties(UnitTests PROPERTIES FOLDER "Tests")
|
|
|
|
function(add_llvm_unittest test_dirname)
|
|
add_unittest(UnitTests ${test_dirname} ${ARGN})
|
|
endfunction()
|
|
function(add_llvm_unittest_with_input_files test_dirname)
|
|
add_unittest_with_input_files(UnitTests ${test_dirname} ${ARGN})
|
|
endfunction()
|
|
|
|
# The target unittests may test APIs that aren't exported in libLLVM.so, so
|
|
# we need to always link against the static libraries.
|
|
function(add_llvm_target_unittest test_dir_name)
|
|
add_llvm_unittest(${test_dir_name} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN})
|
|
endfunction()
|
|
|
|
add_subdirectory(ADT)
|
|
add_subdirectory(Analysis)
|
|
add_subdirectory(AsmParser)
|
|
add_subdirectory(BinaryFormat)
|
|
add_subdirectory(Bitcode)
|
|
add_subdirectory(Bitstream)
|
|
add_subdirectory(CodeGen)
|
|
add_subdirectory(DebugInfo)
|
|
add_subdirectory(Demangle)
|
|
add_subdirectory(ExecutionEngine)
|
|
add_subdirectory(FileCheck)
|
|
add_subdirectory(Frontend)
|
|
add_subdirectory(FuzzMutate)
|
|
add_subdirectory(InterfaceStub)
|
|
add_subdirectory(IR)
|
|
add_subdirectory(LineEditor)
|
|
add_subdirectory(Linker)
|
|
add_subdirectory(MC)
|
|
add_subdirectory(MI)
|
|
add_subdirectory(Object)
|
|
add_subdirectory(ObjectYAML)
|
|
add_subdirectory(Option)
|
|
add_subdirectory(Remarks)
|
|
add_subdirectory(Passes)
|
|
add_subdirectory(ProfileData)
|
|
add_subdirectory(Support)
|
|
add_subdirectory(TableGen)
|
|
add_subdirectory(Target)
|
|
add_subdirectory(TextAPI)
|
|
add_subdirectory(Transforms)
|
|
add_subdirectory(XRay)
|
|
add_subdirectory(tools)
|