mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend] Set up output file .swiftmodule.summary
This patch focus on teaching frontend and driver to emit this file. The actual serialization and deserialization implementation will come later.
This commit is contained in:
@@ -565,6 +565,11 @@ bool ArgsToFrontendOptionsConverter::checkUnusedSupplementaryOutputPaths()
|
||||
Diags.diagnose(SourceLoc(), diag::error_mode_cannot_emit_interface);
|
||||
return true;
|
||||
}
|
||||
if (!FrontendOptions::canActionEmitModuleSummary(Opts.RequestedAction) &&
|
||||
Opts.InputsAndOutputs.hasModuleSummaryOutputPath()) {
|
||||
Diags.diagnose(SourceLoc(), diag::error_mode_cannot_emit_module_summary);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user