mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #23910 from adrian-prantl/49751363
Record parseable interface imports in the debug info.
This commit is contained in:
@@ -582,6 +582,12 @@ public:
|
||||
std::string OutPathStr = OutPath;
|
||||
SerializationOpts.OutputPath = OutPathStr.c_str();
|
||||
SerializationOpts.ModuleLinkName = FEOpts.ModuleLinkName;
|
||||
|
||||
// Record any non-SDK parseable interface files for the debug info.
|
||||
StringRef SDKPath = SubInstance.getASTContext().SearchPathOpts.SDKPath;
|
||||
if (!getRelativeDepPath(InPath, SDKPath))
|
||||
SerializationOpts.ParseableInterface = InPath;
|
||||
|
||||
SmallVector<FileDependency, 16> Deps;
|
||||
if (collectDepsForSerialization(SubInstance, Deps,
|
||||
FEOpts.SerializeModuleInterfaceDependencyHashes)) {
|
||||
|
||||
Reference in New Issue
Block a user