Frontend: add a frontend flag to disable building module from textual interface

This is for testing purposes to ensure prebuilt modules are up to date.

rdar://68770805
This commit is contained in:
Xi Ge
2020-10-05 10:48:07 -07:00
parent 23dc001364
commit 00eb2e9db2
6 changed files with 44 additions and 7 deletions

View File

@@ -290,11 +290,13 @@ struct ModuleInterfaceLoaderOptions {
bool remarkOnRebuildFromInterface = false;
bool disableInterfaceLock = false;
bool disableImplicitSwiftModule = false;
bool disableBuildingInterface = false;
std::string mainExecutablePath;
ModuleInterfaceLoaderOptions(const FrontendOptions &Opts):
remarkOnRebuildFromInterface(Opts.RemarkOnRebuildFromModuleInterface),
disableInterfaceLock(Opts.DisableInterfaceFileLock),
disableImplicitSwiftModule(Opts.DisableImplicitModules),
disableBuildingInterface(Opts.DisableBuildingInterface),
mainExecutablePath(Opts.MainExecutablePath)
{
switch (Opts.RequestedAction) {