mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Explicit Module Builds] Propagate the C++ Interop mode to interface sub-invocations and dependency scanner
This commit is contained in:
@@ -422,6 +422,13 @@ SerializedModuleLoaderBase::getImportsOfModule(
|
||||
if (dotPos != std::string::npos)
|
||||
moduleName = moduleName.slice(0, dotPos);
|
||||
|
||||
// Reverse rewrite of user-specified C++ standard
|
||||
// library module name to one used in the modulemap.
|
||||
// TODO: If we are going to do this for more than this module,
|
||||
// we will need a centralized system for doing module import name remap.
|
||||
if (moduleName == Ctx.Id_CxxStdlib.str())
|
||||
moduleName = "std";
|
||||
|
||||
importedModuleNames.insert(moduleName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user