1set(LLVM_LINK_COMPONENTS 2 Option 3 Support 4 ) 5 6set(link_libs 7 clangBasic 8 clangCodeGen 9 clangDriver 10 clangFrontend 11 clangRewriteFrontend 12 ) 13 14if(CLANG_ENABLE_ARCMT) 15 list(APPEND link_libs 16 clangARCMigrate 17 ) 18endif() 19 20if(CLANG_ENABLE_STATIC_ANALYZER) 21 list(APPEND link_libs 22 clangStaticAnalyzerFrontend 23 ) 24endif() 25 26add_clang_library(clangFrontendTool 27 ExecuteCompilerInvocation.cpp 28 29 DEPENDS 30 ClangDriverOptions 31 32 LINK_LIBS 33 ${link_libs} 34 ) 35