File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -410,12 +410,12 @@ static bool buildModuleFromInterface(CompilerInstance &Instance) {
410
410
bool IgnoreAdjacentModules = Instance.hasASTContext () &&
411
411
Instance.getASTContext ().IgnoreAdjacentModules ;
412
412
413
- // When caching is enabled, the explicit module build dependencies are
413
+ // When building explicit module dependencies, they are
414
414
// discovered by dependency scanner and the swiftmodule is already rebuilt
415
415
// ignoring candidate module. There is no need to serialized dependencies for
416
- // validation purpose.
417
- bool ShouldSerializeDeps =
418
- !Instance. getInvocation (). getCASOptions (). EnableCaching ;
416
+ // validation purpose because the build system (swift-driver) is then
417
+ // responsible for checking whether inputs are up-to-date.
418
+ bool ShouldSerializeDeps = !FEOpts. ExplicitInterfaceBuild ;
419
419
420
420
// If an explicit interface build was requested, bypass the creation of a new
421
421
// sub-instance from the interface which will build it in a separate thread,
You can’t perform that action at this time.
0 commit comments