Files
swift-mirror/lib/Frontend/CMakeLists.txt
Steven Wu b326c55d82 [CAS] Full support for make-style dependencies file caching hit
Fully support make-style `.d` dependencies file output by making
following improvements:
* All correct dependency file render when cache hit for a different
  output file location. The dependency file should list the correct
  output path, not the stale output path for the initial compilation
* When enable a path prefix mapper to canonicalize the path, the
  dependency file should render the input file correctly as the input
  file path on disk.

rdar://132250067
2024-09-30 15:53:18 -07:00

54 lines
1.1 KiB
CMake

add_swift_host_library(swiftFrontend STATIC
ArgsToFrontendInputsConverter.cpp
ArgsToFrontendOptionsConverter.cpp
ArgsToFrontendOutputsConverter.cpp
CachedDiagnostics.cpp
CachingUtils.cpp
CASOutputBackends.cpp
CompileJobCacheKey.cpp
CompileJobCacheResult.cpp
CompilerInvocation.cpp
DependencyVerifier.cpp
DiagnosticHelper.cpp
DiagnosticVerifier.cpp
Frontend.cpp
FrontendInputsAndOutputs.cpp
FrontendOptions.cpp
MakeStyleDependencies.cpp
ModuleInterfaceBuilder.cpp
ModuleInterfaceLoader.cpp
ModuleInterfaceSupport.cpp
PrintingDiagnosticConsumer.cpp
Serialization.cpp
SerializedDiagnosticConsumer.cpp)
add_dependencies(swiftFrontend
SwiftOptions)
target_link_libraries(swiftFrontend PRIVATE
swiftAPIDigester
swiftAST
swiftConstExtract
swiftIDE
swiftSIL
swiftOption
swiftSILGen
swiftSILOptimizer
swiftIRGen
swiftLocalization
swiftSema
swiftSerialization
swiftSymbolGraphGen)
if (SWIFT_BUILD_SWIFT_SYNTAX)
target_link_libraries(swiftFrontend
PRIVATE
swiftASTGen
)
add_dependencies(swiftFrontend
swiftASTGen
)
endif()
set_swift_llvm_is_available(swiftFrontend)