Load plugin libraries when type checking swiftinterface

This commit is contained in:
Apollo Zhu
2024-01-22 16:38:34 -08:00
parent 225fb4e704
commit 512308357c

View File

@@ -1784,6 +1784,11 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
StringRef explicitSwiftModuleMap = searchPathOpts.ExplicitSwiftModuleMap;
genericSubInvocation.getSearchPathOptions().ExplicitSwiftModuleMap =
explicitSwiftModuleMap.str();
// Load plugin libraries for macro expression as default arguments
genericSubInvocation.getSearchPathOptions().PluginSearchOpts =
searchPathOpts.PluginSearchOpts;
auto &subClangImporterOpts = genericSubInvocation.getClangImporterOptions();
// Respect the detailed-record preprocessor setting of the parent context.
// This, and the "raw" clang module format it implicitly enables, are