Skip to content

Commit 5c0c77c

Browse files
committed
Driver: Handle -emit-supported-features output mode.
Partially resolves swiftlang#74910
1 parent 591891f commit 5c0c77c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Driver/Driver.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,10 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
12201220
OI.CompilerOutputType = file_types::TY_Nothing;
12211221
break;
12221222

1223+
case options::OPT_emit_supported_features:
1224+
OI.CompilerOutputType = file_types::TY_JSONFeatures;
1225+
break;
1226+
12231227
case options::OPT_i:
12241228
// Keep the default output/mode; this flag was removed and should already
12251229
// have been diagnosed above.

0 commit comments

Comments
 (0)