Skip to content

Commit dbacb35

Browse files
committed
Fix some Linux compile issues
1 parent 78436f2 commit dbacb35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Commands/SwiftTestTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public struct SwiftTestTool: ParsableCommand {
224224

225225
case .generateLinuxMain:
226226
#if os(Linux)
227-
diagnostics.emit(warning: "can't discover tests on Linux; please use this option on macOS instead")
227+
swiftTool.diagnostics.emit(warning: "can't discover tests on Linux; please use this option on macOS instead")
228228
#endif
229229
let graph = try swiftTool.loadPackageGraph()
230230
let testProducts = try buildTestsIfNeeded(swiftTool: swiftTool)

Sources/Commands/SwiftTool.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public class SwiftTool {
210210
let originalWorkingDirectory: AbsolutePath
211211

212212
/// The options of this tool.
213-
let options: SwiftToolOptions
213+
var options: SwiftToolOptions
214214

215215
/// Path to the root package directory, nil if manifest is not found.
216216
let packageRoot: AbsolutePath?
@@ -281,7 +281,7 @@ public class SwiftTool {
281281

282282
// Force building with the native build system on other platforms than macOS.
283283
#if !os(macOS)
284-
options.buildSystem = .native
284+
self.options.buildSystem = .native
285285
#endif
286286

287287
let processSet = ProcessSet()

0 commit comments

Comments
 (0)