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