mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
36 lines
764 B
CMake
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)
|