mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Support loading an aliased module with an underlying module
Importing a module using an alias (set with -module-alias) fails if the imported module has an underlying clang module. rdar://102217790
This commit is contained in:
@@ -614,7 +614,8 @@ class ModuleInterfaceLoaderImpl {
|
||||
StringRef inParentDirName =
|
||||
path::filename(path::parent_path(interfacePath));
|
||||
if (path::extension(inParentDirName) == ".swiftmodule") {
|
||||
assert(path::stem(inParentDirName) == moduleName);
|
||||
assert(path::stem(inParentDirName) ==
|
||||
ctx.getRealModuleName(ctx.getIdentifier(moduleName)).str());
|
||||
path::append(scratch, inParentDirName);
|
||||
}
|
||||
path::append(scratch, path::filename(modulePath));
|
||||
|
||||
Reference in New Issue
Block a user