mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CrossImport][PrefixMap] Make sure overlay file is remapped if used
When dependency scanner construct the overlay file path for the swift-frontend invocation, make sure the path is remapped if prefix map is used. rdar://131940130
This commit is contained in:
@@ -963,7 +963,8 @@ void ModuleDependencyScanner::discoverCrossImportOverlayDependencies(
|
||||
mainDep.addAuxiliaryFile(entry.second);
|
||||
cmdCopy.push_back("-swift-module-cross-import");
|
||||
cmdCopy.push_back(entry.first);
|
||||
cmdCopy.push_back(entry.second);
|
||||
auto overlayPath = cache.getScanService().remapPath(entry.second);
|
||||
cmdCopy.push_back(overlayPath);
|
||||
}
|
||||
mainDep.updateCommandLine(cmdCopy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user