Skip to content

Commit a0b749d

Browse files
committed
[Concurrency] Don't import _Concurrency implicitly when building a module.
1 parent 6f60a17 commit a0b749d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Frontend/Frontend.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,9 @@ CompilerInstance::openModuleDoc(const InputFile &input) {
709709

710710
bool CompilerInvocation::shouldImportSwiftConcurrency() const {
711711
return getLangOptions().EnableExperimentalConcurrency
712-
&& !getLangOptions().DisableImplicitConcurrencyModuleImport;
712+
&& !getLangOptions().DisableImplicitConcurrencyModuleImport &&
713+
getFrontendOptions().InputMode !=
714+
FrontendOptions::ParseInputMode::SwiftModuleInterface;
713715
}
714716

715717
/// Implicitly import the SwiftOnoneSupport module in non-optimized

0 commit comments

Comments
 (0)