mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 02:26:37 +00:00

The modules build trips over this frequently because there is no textual include of the tablegen output, but the module includes it. Differential revision: https://reviews.llvm.org/D157119
32 lines
508 B
CMake
32 lines
508 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Option
|
|
Support
|
|
TargetParser
|
|
)
|
|
|
|
add_clang_tool(modularize
|
|
Modularize.cpp
|
|
ModuleAssistant.cpp
|
|
ModularizeUtilities.cpp
|
|
CoverageChecker.cpp
|
|
PreprocessorTracker.cpp
|
|
|
|
DEPENDS
|
|
ClangDriverOptions
|
|
)
|
|
|
|
clang_target_link_libraries(modularize
|
|
PRIVATE
|
|
clangAST
|
|
clangBasic
|
|
clangDriver
|
|
clangFrontend
|
|
clangLex
|
|
clangSerialization
|
|
clangTooling
|
|
)
|
|
|
|
install(TARGETS modularize
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
COMPONENT clang-extras)
|