diff options
author | Reid Kleckner <rnk@google.com> | 2025-04-01 14:12:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-01 14:12:44 -0700 |
commit | 5ffd9bdb50b5753bbf668e4eab3647dfb46cd0d6 (patch) | |
tree | 175dc872c4da008bb075ebadfef83ac6dd0bd921 /clang/unittests/Driver | |
parent | 96d60c00e5ed5bddedad0eab83a089957a9cf388 (diff) | |
download | llvm-5ffd9bdb50b5753bbf668e4eab3647dfb46cd0d6.zip llvm-5ffd9bdb50b5753bbf668e4eab3647dfb46cd0d6.tar.gz llvm-5ffd9bdb50b5753bbf668e4eab3647dfb46cd0d6.tar.bz2 |
[cmake] Refactor clang unittest cmake (#133545)
Pass all the dependencies into add_clang_unittest. This is consistent
with how it is done for LLDB. I borrowed the same named argument list
structure from add_lldb_unittest. This is a necessary step towards
consolidating unit tests into fewer binaries, but seems like a good
refactoring in its own right.
Diffstat (limited to 'clang/unittests/Driver')
-rw-r--r-- | clang/unittests/Driver/CMakeLists.txt | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/clang/unittests/Driver/CMakeLists.txt b/clang/unittests/Driver/CMakeLists.txt index efdd07e..fa0e87c3 100644 --- a/clang/unittests/Driver/CMakeLists.txt +++ b/clang/unittests/Driver/CMakeLists.txt @@ -1,11 +1,3 @@ -set(LLVM_LINK_COMPONENTS - ${LLVM_TARGETS_TO_BUILD} - MC - Option - Support - TargetParser - ) - add_clang_unittest(ClangDriverTests DistroTest.cpp DXCModeTest.cpp @@ -15,12 +7,15 @@ add_clang_unittest(ClangDriverTests MultilibBuilderTest.cpp MultilibTest.cpp SanitizerArgsTest.cpp - ) - -clang_target_link_libraries(ClangDriverTests - PRIVATE + CLANG_LIBS clangDriver clangBasic clangFrontend # For TextDiagnosticPrinter. clangSerialization + LLVM_COMPONENTS + ${LLVM_TARGETS_TO_BUILD} + MC + Option + Support + TargetParser ) |