Skip to content

Commit 62b1f6b

Browse files
authored
Merge pull request #1686 from dempseyatgithub/SE-0441-add-language-mode-option
Update Options.swift with SE-0441 language-mode option
2 parents c5a37fb + 0c1c106 commit 62b1f6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftOptions/Options.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ extension Option {
584584
public static let json_: Option = Option("--json", .flag, alias: Option.json, attributes: [.noDriver], helpText: "Print output in JSON format.")
585585
public static let j: Option = Option("-j", .joinedOrSeparate, attributes: [.doesNotAffectIncrementalBuild], metaVar: "<n>", helpText: "Number of commands to execute in parallel")
586586
public static let LEQ: Option = Option("-L=", .joined, alias: Option.L, attributes: [.frontend, .doesNotAffectIncrementalBuild, .argumentIsPath], group: .linkerOption)
587+
public static let languageMode: Option = Option("-language-mode", .separate, alias: Option.swiftVersion, attributes: [.frontend, .moduleInterface], metaVar: "<mode>", helpText: "Interpret input according to a specific Swift language mode")
587588
public static let ldPath: Option = Option("-ld-path=", .joined, attributes: [.helpHidden, .doesNotAffectIncrementalBuild, .argumentIsPath], helpText: "Specifies the path to the linker to be used")
588589
public static let libc: Option = Option("-libc", .separate, attributes: [], helpText: "libc runtime library to use")
589590
public static let libraryLevelEQ: Option = Option("-library-level=", .joined, alias: Option.libraryLevel, attributes: [.helpHidden, .frontend, .moduleInterface], metaVar: "<level>")
@@ -1457,6 +1458,7 @@ extension Option {
14571458
Option.json_,
14581459
Option.j,
14591460
Option.LEQ,
1461+
Option.languageMode,
14601462
Option.ldPath,
14611463
Option.libc,
14621464
Option.libraryLevelEQ,

0 commit comments

Comments
 (0)