[ModuleInterface] Conditionalize .swiftinterface loading by -enable-parseable-module-interface

This commit is contained in:
Graydon Hoare
2018-10-11 14:24:20 -07:00
parent 4f315363f8
commit 410fc10045
5 changed files with 12 additions and 1 deletions

View File

@@ -324,7 +324,7 @@ bool CompilerInstance::setUpModuleLoaders() {
}
Context->addModuleLoader(std::move(clangImporter), /*isClang*/ true);
}
{
if (Invocation.getFrontendOptions().EnableParseableModuleInterface) {
auto PIML = ParseableInterfaceModuleLoader::create(*Context,
ModuleCachePath,
getDependencyTracker());