Skip to content

Commit

Permalink
Driver: Handle -emit-supported-features output mode.
Browse files Browse the repository at this point in the history
Partially resolves swiftlang#74910
  • Loading branch information
rjmansfield committed Jul 8, 2024
1 parent 591891f commit 5c0c77c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,10 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
OI.CompilerOutputType = file_types::TY_Nothing;
break;

case options::OPT_emit_supported_features:
OI.CompilerOutputType = file_types::TY_JSONFeatures;
break;

case options::OPT_i:
// Keep the default output/mode; this flag was removed and should already
// have been diagnosed above.
Expand Down

0 comments on commit 5c0c77c

Please sign in to comment.