mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Introduce a Swift runtime availability domain.
Add support for the `Swift` availability domain, which represents availability with respect to the Swift runtime. Use of this domain is restricted by the experimental feature `SwiftRuntimeAvailability`.
This commit is contained in:
@@ -1046,6 +1046,15 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
// HadError = true;
|
||||
}
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_min_swift_runtime_version)) {
|
||||
if (auto vers = VersionParser::parseVersionString(A->getValue(),
|
||||
SourceLoc(), &Diags)) {
|
||||
Opts.MinSwiftRuntimeVersion = *vers;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_package_description_version)) {
|
||||
auto vers =
|
||||
VersionParser::parseVersionString(A->getValue(), SourceLoc(), &Diags);
|
||||
|
||||
Reference in New Issue
Block a user