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) {
410410 bool IgnoreAdjacentModules = Instance.hasASTContext () &&
411411 Instance.getASTContext ().IgnoreAdjacentModules ;
412412
413- // When caching is enabled, the explicit module build dependencies are
413+ // When building explicit module dependencies, they are
414414 // discovered by dependency scanner and the swiftmodule is already rebuilt
415415 // 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 ;
419419
420420 // If an explicit interface build was requested, bypass the creation of a new
421421 // 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