[clang][unittest] Resolve ClangSupportTest link time errors
authorJohn McIver <john.mciver.iii@gmail.com>
Sun, 23 Oct 2022 09:53:17 +0000 (09:53 +0000)
committerEvgeny Shulgin <izaronplatz@gmail.com>
Sun, 23 Oct 2022 09:54:39 +0000 (09:54 +0000)
Resolves undefined references to vtable for clang::ASTConsumer,
PCHContainerOperations::PCHContainerOperations(), and
CodeGenOptions::CodeGenOptions().

Reviewed By: Izaron

Differential Revision: https://reviews.llvm.org/D136546

clang/unittests/Support/CMakeLists.txt

index 956b3a7..22be5ed 100644 (file)
@@ -8,5 +8,8 @@ add_clang_unittest(ClangSupportTests
 
 clang_target_link_libraries(ClangSupportTests
   PRIVATE
+  clangAST
+  clangBasic
   clangFrontend
+  clangSerialization
   )