Skip to content

Commit bcbaacd

Browse files
authored
Merge pull request swiftlang#38245 from owenv/emit-frontend-tool-flags
2 parents 164505c + 63b03fc commit bcbaacd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,13 @@ static bool printSwiftVersion(const CompilerInvocation &Invocation) {
10481048

10491049
static void printSingleFrontendOpt(llvm::opt::OptTable &table, options::ID id,
10501050
llvm::raw_ostream &OS) {
1051-
if (table.getOption(id).hasFlag(options::FrontendOption)) {
1051+
if (table.getOption(id).hasFlag(options::FrontendOption) ||
1052+
table.getOption(id).hasFlag(options::AutolinkExtractOption) ||
1053+
table.getOption(id).hasFlag(options::ModuleWrapOption) ||
1054+
table.getOption(id).hasFlag(options::SwiftIndentOption) ||
1055+
table.getOption(id).hasFlag(options::SwiftAPIExtractOption) ||
1056+
table.getOption(id).hasFlag(options::SwiftSymbolGraphExtractOption) ||
1057+
table.getOption(id).hasFlag(options::SwiftAPIDigesterOption)) {
10521058
auto name = StringRef(table.getOptionName(id));
10531059
if (!name.empty()) {
10541060
OS << " \"" << name << "\",\n";

test/Frontend/emit-supported-features.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-swift-frontend -emit-supported-features %s | %FileCheck %s
22

33
// CHECK: "SupportedArguments"
4+
// CHECK: "abi"
45
// CHECK: "emit-module"
56
// CHECK: "LastOption"
67
// CHECK: "SupportedFeatures"

0 commit comments

Comments
 (0)