Skip to content

Commit 78436f2

Browse files
committed
Build options need to allow dash-prefixed values
1 parent 3c87d43 commit 78436f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Commands/Options.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,27 @@ import Build
1717

1818
struct BuildFlagsGroup: ParsableArguments {
1919
@Option(name: .customLong("Xcc", withSingleDash: true),
20+
parsing: .unconditionalSingleValue,
2021
help: "Pass flag through to all C compiler invocations")
2122
var cCompilerFlags: [String]
2223

2324
@Option(name: .customLong("Xswiftc", withSingleDash: true),
25+
parsing: .unconditionalSingleValue,
2426
help: "Pass flag through to all Swift compiler invocations")
2527
var swiftCompilerFlags: [String]
2628

2729
@Option(name: .customLong("Xlinker", withSingleDash: true),
30+
parsing: .unconditionalSingleValue,
2831
help: "Pass flag through to all linker invocations")
2932
var linkerFlags: [String]
3033

3134
@Option(name: .customLong("Xccxx", withSingleDash: true),
35+
parsing: .unconditionalSingleValue,
3236
help: "Pass flag through to all C++ compiler invocations")
3337
var cxxCompilerFlags: [String]
3438

3539
@Option(name: .customLong("Xxcbuild", withSingleDash: true),
40+
parsing: .unconditionalSingleValue,
3641
help: "Pass flag through to the Xcode build system invocations")
3742
var xcbuildFlags: [String]
3843

0 commit comments

Comments
 (0)