mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #33114 from brentdax/check-your-interfaces-at-the-door
Verify that just-emitted module interfaces parse and typecheck
This commit is contained in:
@@ -285,6 +285,8 @@ private:
|
||||
};
|
||||
|
||||
struct ModuleInterfaceLoaderOptions {
|
||||
FrontendOptions::ActionType requestedAction =
|
||||
FrontendOptions::ActionType::EmitModuleOnly;
|
||||
bool remarkOnRebuildFromInterface = false;
|
||||
bool disableInterfaceLock = false;
|
||||
bool disableImplicitSwiftModule = false;
|
||||
@@ -293,7 +295,17 @@ struct ModuleInterfaceLoaderOptions {
|
||||
remarkOnRebuildFromInterface(Opts.RemarkOnRebuildFromModuleInterface),
|
||||
disableInterfaceLock(Opts.DisableInterfaceFileLock),
|
||||
disableImplicitSwiftModule(Opts.DisableImplicitModules),
|
||||
mainExecutablePath(Opts.MainExecutablePath) {}
|
||||
mainExecutablePath(Opts.MainExecutablePath)
|
||||
{
|
||||
switch (Opts.RequestedAction) {
|
||||
case FrontendOptions::ActionType::TypecheckModuleFromInterface:
|
||||
requestedAction = FrontendOptions::ActionType::Typecheck;
|
||||
break;
|
||||
default:
|
||||
requestedAction = FrontendOptions::ActionType::EmitModuleOnly;
|
||||
break;
|
||||
}
|
||||
}
|
||||
ModuleInterfaceLoaderOptions() = default;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user