mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Caching] Use subInvocation to verify interface
The interface verification needs to read some command-line from the interface file so it needs to be built inside sub-invocation. rdar://122423965
This commit is contained in:
@@ -418,9 +418,7 @@ static bool buildModuleFromInterface(CompilerInstance &Instance) {
|
||||
// currently we need to ensure it still reads the flags written out
|
||||
// in the .swiftinterface file itself. Instead, creation of that
|
||||
// job should incorporate those flags.
|
||||
if (FEOpts.ExplicitInterfaceBuild &&
|
||||
!(FEOpts.isTypeCheckAction() &&
|
||||
!Invocation.getCASOptions().EnableCaching))
|
||||
if (FEOpts.ExplicitInterfaceBuild && !(FEOpts.isTypeCheckAction()))
|
||||
return ModuleInterfaceLoader::buildExplicitSwiftModuleFromSwiftInterface(
|
||||
Instance, Invocation.getClangModuleCachePath(),
|
||||
FEOpts.BackupModuleInterfaceDir, PrebuiltCachePath, ABIPath, InputPath,
|
||||
|
||||
Reference in New Issue
Block a user