ModuleInterface: reconstruct command-line arguments for building Swift module from interface explicitly

This commit is contained in:
Xi Ge
2020-05-14 11:42:14 -07:00
parent d8f5b2011b
commit 7d08a24161
8 changed files with 217 additions and 80 deletions

View File

@@ -163,8 +163,10 @@ bool ModuleInterfaceBuilder::buildSwiftModuleInternal(
llvm::RestorePrettyStackState(savedInnerPrettyStackState);
};
SubError = subASTDelegate.runInSubCompilerInstance(moduleName, interfacePath,
OutPath, diagnosticLoc,
SubError = subASTDelegate.runInSubCompilerInstance(moduleName,
interfacePath,
OutPath,
diagnosticLoc,
[&](SubCompilerInstanceInfo &info) {
auto &SubInstance = *info.Instance;
auto subInvocation = SubInstance.getInvocation();