Files
Naveen Seth Hanig f63d33da0a Reland "[clang] Refactor option-related code from clangDriver into new clangOptions library" (#167374)
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.
2025-11-10 21:24:39 +01:00

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)