[clang] e5032d8 - [clang][unittest] Resolve ClangSupportTest link time errors

Evgeny Shulgin via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 23 02:55:11 PDT 2022


Author: John McIver
Date: 2022-10-23T09:54:39Z
New Revision: e5032d89e44a7fa5f2cc06925be28e87e3bdb9f0

URL: https://github.com/llvm/llvm-project/commit/e5032d89e44a7fa5f2cc06925be28e87e3bdb9f0
DIFF: https://github.com/llvm/llvm-project/commit/e5032d89e44a7fa5f2cc06925be28e87e3bdb9f0.diff

LOG: [clang][unittest] Resolve ClangSupportTest link time errors

Resolves undefined references to vtable for clang::ASTConsumer,
PCHContainerOperations::PCHContainerOperations(), and
CodeGenOptions::CodeGenOptions().

Reviewed By: Izaron

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

Added: 
    

Modified: 
    clang/unittests/Support/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Support/CMakeLists.txt b/clang/unittests/Support/CMakeLists.txt
index 956b3a756150e..22be5ed18cc7a 100644
--- a/clang/unittests/Support/CMakeLists.txt
+++ b/clang/unittests/Support/CMakeLists.txt
@@ -8,5 +8,8 @@ add_clang_unittest(ClangSupportTests
 
 clang_target_link_libraries(ClangSupportTests
   PRIVATE
+  clangAST
+  clangBasic
   clangFrontend
+  clangSerialization
   )


        


More information about the cfe-commits mailing list