This relands #167348. The original PR was reverted due to a reported build failure, which was later diagnosed as a local issue in the developer’s checkout or build state. See discussion here: https://github.com/llvm/llvm-project/pull/163659#discussion_r2511546964 No additional changes have been made in this reland.
33 lines
523 B
CMake
33 lines
523 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
|
|
clangOptions
|
|
clangFrontend
|
|
clangLex
|
|
clangSerialization
|
|
clangTooling
|
|
)
|
|
|
|
install(TARGETS modularize
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
COMPONENT clang-extras)
|