mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Frontend] Add -print-supported-features option
This is a replacement for `-emit-supported-features` that prints
all of the upcoming/experimental features supported by the compiler
with some additional meta information in JSON format to stdout.
(cherry picked from commit 55bd906906)
This commit is contained in:
@@ -206,6 +206,10 @@ bool ArgsToFrontendOptionsConverter::convert(
|
||||
Opts.PrintTargetInfo = true;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_print_supported_features)) {
|
||||
Opts.PrintSupportedFeatures = true;
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_verify_generic_signatures)) {
|
||||
Opts.VerifyGenericSignaturesInModule = A->getValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user