mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use -strict-concurrency=minimal as the default for Swift 5.x mode.
Emulate the behavior of Swift 5.5/5.6 by default, using `-strict-concurrency=minimal`.
This commit is contained in:
committed by
Kavon Farvardin
parent
89fec217fb
commit
165827ce9d
@@ -794,8 +794,8 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
} else if (Args.hasArg(OPT_warn_concurrency)) {
|
||||
Opts.StrictConcurrencyLevel = StrictConcurrency::Complete;
|
||||
} else {
|
||||
// Default to "limited" checking in Swift 5.x.
|
||||
Opts.StrictConcurrencyLevel = StrictConcurrency::Targeted;
|
||||
// Default to minimal checking in Swift 5.x.
|
||||
Opts.StrictConcurrencyLevel = StrictConcurrency::Minimal;
|
||||
}
|
||||
|
||||
Opts.WarnImplicitOverrides =
|
||||
|
||||
Reference in New Issue
Block a user