Files
swift-mirror/lib/FrontendTool/CMakeLists.txt
Doug Gregor ae8f9d8234 Add -print-static-build-config to print a static build conformance
Introduce the ability to form a `StaticBuildConfiguration` from
language options. Add a frontend option `-print-static-build-config`
to then print that static build configuration as JSON in a manner that
can be decoded into a `StaticBuildConfiguration`.

Most of the change here is in sinking the bridged ASTContext queries
of language options into a new BridgedLangOptions. The printing of the
static build configuration only has a LangOptions (not an ASTContext),
so this refactoring is required for printing.
2025-09-29 18:42:14 -07:00

36 lines
764 B
CMake

add_swift_host_library(swiftFrontendTool STATIC
FrontendTool.cpp
ImportedModules.cpp
LoadedModuleTrace.cpp
TBD.cpp)
add_dependencies(swiftFrontendTool
SwiftOptions)
target_link_libraries(swiftFrontendTool INTERFACE
clangAPINotes
clangBasic)
target_link_libraries(swiftFrontendTool PRIVATE
swiftClangImporter
swiftConstExtract
swiftDemangling
swiftDependencyScan
swiftFrontend
swiftImmediate
swiftIndex
swiftIRGen
swiftMigrator
swiftOption
swiftPrintAsClang
swiftSerialization
swiftSIL
swiftSILGen
swiftSILOptimizer
swiftThreading)
if (SWIFT_BUILD_SWIFT_SYNTAX)
target_link_libraries(swiftFrontendTool PRIVATE
swiftASTGen)
endif()
set_swift_llvm_is_available(swiftFrontendTool)