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