[NFC][Docs] Fix RAVFrontendAction doc's CMakeLists.txt for shared build
authorShivam Gupta <shivam98.tkg@gmail.com>
Sat, 13 Feb 2021 14:18:49 +0000 (19:48 +0530)
committerGitHub <noreply@github.com>
Sat, 13 Feb 2021 14:18:49 +0000 (19:48 +0530)
It should fix following error:

  Undefined symbols for architecture x86_64:
    "llvm::outs()", referenced from:
        FindNamedClassVisitor::VisitCXXRecordDecl(clang::CXXRecordDecl*) in FindClassDecls.cpp.o

clang/docs/RAVFrontendAction.rst

index 71722a1..e38276b 100644 (file)
@@ -205,6 +205,10 @@ following CMakeLists.txt to link it:
 
 ::
 
+    set(LLVM_LINK_COMPONENTS
+      Support
+      )
+
     add_clang_executable(find-class-decls FindClassDecls.cpp)
 
     target_link_libraries(find-class-decls