llvm-project/clang/unittests/Driver/CMakeLists.txt

22 lines
355 B
CMake

set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
MC
Option
Support
)
add_clang_unittest(ClangDriverTests
DistroTest.cpp
ToolChainTest.cpp
ModuleCacheTest.cpp
MultilibTest.cpp
SanitizerArgsTest.cpp
)
clang_target_link_libraries(ClangDriverTests
PRIVATE
clangDriver
clangBasic
clangFrontend # For TextDiagnosticPrinter.
)