mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] Only parse distributed when experimentla mode enabled
This commit is contained in:
@@ -779,12 +779,6 @@ bool CompilerInvocation::shouldImportSwiftConcurrency() const {
|
||||
FrontendOptions::ParseInputMode::SwiftModuleInterface;
|
||||
}
|
||||
|
||||
bool CompilerInvocation::shouldImportSwiftDistributed() const {
|
||||
return getLangOptions().EnableExperimentalDistributed &&
|
||||
getFrontendOptions().InputMode !=
|
||||
FrontendOptions::ParseInputMode::SwiftModuleInterface;
|
||||
}
|
||||
|
||||
/// Implicitly import the SwiftOnoneSupport module in non-optimized
|
||||
/// builds. This allows for use of popular specialized functions
|
||||
/// from the standard library, which makes the non-optimized builds
|
||||
@@ -825,6 +819,11 @@ bool CompilerInstance::canImportSwiftConcurrency() const {
|
||||
{getASTContext().getIdentifier(SWIFT_CONCURRENCY_NAME), SourceLoc()});
|
||||
}
|
||||
|
||||
bool CompilerInstance::canImportSwiftDistributed() const {
|
||||
return getASTContext().canImportModule(
|
||||
{getASTContext().getIdentifier(SWIFT_DISTRIBUTED_NAME), SourceLoc()});
|
||||
}
|
||||
|
||||
ImplicitImportInfo CompilerInstance::getImplicitImportInfo() const {
|
||||
auto &frontendOpts = Invocation.getFrontendOptions();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user