mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: move ExplicitSwiftModules into SearchPathOptions, NFC
This commit is contained in:
@@ -1201,12 +1201,12 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
|
||||
subInvocation.getFrontendOptions().DisableImplicitModules = true;
|
||||
GenericArgs.push_back("-disable-implicit-swift-modules");
|
||||
}
|
||||
subInvocation.getFrontendOptions().ExplicitSwiftModules =
|
||||
LoaderOpts.explicitSwiftModules;
|
||||
subInvocation.getSearchPathOptions().ExplicitSwiftModules =
|
||||
searchPathOpts.ExplicitSwiftModules;
|
||||
// Dependencies scanner shouldn't know any explict Swift modules to use.
|
||||
// Adding these argumnets may not be necessary.
|
||||
// FIXME: remove it?
|
||||
for (auto EM: LoaderOpts.explicitSwiftModules) {
|
||||
for (auto EM: searchPathOpts.ExplicitSwiftModules) {
|
||||
GenericArgs.push_back(ArgSaver.save((llvm::Twine("-swift-module-file=") + EM).str()));
|
||||
}
|
||||
if (clangImporter) {
|
||||
|
||||
Reference in New Issue
Block a user