mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add -testable-import-module frontend flag
This is just like -import-module, but it does an @testable import. Simple, right? Fixes rdar://66544654.
This commit is contained in:
@@ -347,9 +347,9 @@ ImportDepth::ImportDepth(ASTContext &context,
|
||||
// Imports from -import-name such as Playground auxiliary sources are treated
|
||||
// specially by applying import depth 0.
|
||||
llvm::StringSet<> auxImports;
|
||||
for (StringRef moduleName :
|
||||
for (const auto &pair :
|
||||
invocation.getFrontendOptions().getImplicitImportModuleNames())
|
||||
auxImports.insert(moduleName);
|
||||
auxImports.insert(pair.first);
|
||||
|
||||
// Private imports from this module.
|
||||
// FIXME: only the private imports from the current source file.
|
||||
|
||||
Reference in New Issue
Block a user