mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Introduce -no-strict-keyword-options in the frontend "just in case".
Swift SVN r17742
This commit is contained in:
@@ -550,7 +550,12 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.EnableAppExtensionRestrictions = Args.hasArg(OPT_enable_app_extension);
|
||||
Opts.SplitPrepositions = Args.hasArg(OPT_split_objc_selectors);
|
||||
Opts.ImplicitObjCWith = Args.hasArg(OPT_implicit_objc_with);
|
||||
Opts.StrictKeywordArguments = Args.hasArg(OPT_strict_keyword_arguments);
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_strict_keyword_arguments,
|
||||
OPT_no_strict_keyword_arguments)) {
|
||||
Opts.StrictKeywordArguments
|
||||
= A->getOption().matches(OPT_strict_keyword_arguments);
|
||||
}
|
||||
|
||||
if (Opts.SplitPrepositions) {
|
||||
Opts.addBuildConfigOption("OBJC_SELECTOR_SPLITTING");
|
||||
|
||||
Reference in New Issue
Block a user