Skip to content

Commit

Permalink
Always pass --enable-test-discovery to swift build (#49)
Browse files Browse the repository at this point in the history
Thanks to this the presence of `LinuxMain.swift` file is no longer needed.
  • Loading branch information
MaxDesiatov authored Jul 15, 2020
1 parent 46798f7 commit 8b326b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftToolchain/Toolchain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public final class Toolchain {

var builderArguments = [
swiftPath.pathString, "build", "-c", release ? "release" : "debug", "--product", product,
"--enable-test-discovery",
]
let destination = try destination ?? inferDestinationPath().pathString
builderArguments.append(contentsOf: ["--destination", destination])
Expand Down
Empty file removed TestApp/Tests/LinuxMain.swift
Empty file.

0 comments on commit 8b326b6

Please sign in to comment.