mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CAS] Allow SwiftDependencyScanningService be shared
When the CASOptions are the same, SwiftDependencyScanningService can be shared with multiple swift driver invocation for scanning.
This commit is contained in:
@@ -279,7 +279,8 @@ DependencyScanningTool::initCompilerInstanceForScan(
|
||||
}
|
||||
|
||||
// Setup the caching service after the instance finishes setup.
|
||||
ScanningService->setupCachingDependencyScanningService(*Instance);
|
||||
if (ScanningService->setupCachingDependencyScanningService(*Instance))
|
||||
return std::make_error_code(std::errc::invalid_argument);
|
||||
|
||||
(void)Instance->getMainModule();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user