mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Unlike `swift-frontend -scan-dependencies` option, when dependency scanner is used as a library by swift driver, the SwiftScanningService is shared for multiple driver invocations. It can't keep states (like common file dependencies) that can change from one invocation to another. Instead, the clang/SDK file dependencies are computed from each driver invocations to avoid out-of-date information when scanning service is reused. The test case for a shared Service will be added to swift-driver repo since there is no tool to test it within swift compiler.
26 KiB
26 KiB