2013-12-09 19:04:43 +00:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Option
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
2014-02-26 06:41:29 +00:00
|
|
|
set(link_libs
|
2013-12-09 19:04:43 +00:00
|
|
|
clangBasic
|
|
|
|
clangCodeGen
|
2012-06-21 01:30:21 +00:00
|
|
|
clangDriver
|
2022-03-21 00:53:28 -07:00
|
|
|
clangExtractAPI
|
2012-06-21 01:30:21 +00:00
|
|
|
clangFrontend
|
2012-09-01 05:09:24 +00:00
|
|
|
clangRewriteFrontend
|
2012-06-21 01:30:21 +00:00
|
|
|
)
|
2013-07-03 16:20:29 +00:00
|
|
|
|
2013-08-22 15:50:02 +00:00
|
|
|
if(CLANG_ENABLE_ARCMT)
|
2014-02-26 06:41:29 +00:00
|
|
|
list(APPEND link_libs
|
2013-08-22 15:50:02 +00:00
|
|
|
clangARCMigrate
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2013-07-03 16:20:29 +00:00
|
|
|
if(CLANG_ENABLE_STATIC_ANALYZER)
|
2014-02-26 06:41:29 +00:00
|
|
|
list(APPEND link_libs
|
2013-07-03 16:20:29 +00:00
|
|
|
clangStaticAnalyzerFrontend
|
|
|
|
)
|
|
|
|
endif()
|
2014-02-26 06:41:29 +00:00
|
|
|
|
|
|
|
add_clang_library(clangFrontendTool
|
|
|
|
ExecuteCompilerInvocation.cpp
|
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
ClangDriverOptions
|
|
|
|
|
|
|
|
LINK_LIBS
|
|
|
|
${link_libs}
|
|
|
|
)
|