Skip to content

Commit 52ad263

Browse files
authored
Build/Commands: fix triple property deprecation warnings (#6971)
As `triple` was deprecated with the recommendation to use explicit `targetTriple` property instead, we should update all of our code to get rid of the remaining deprecation warnings.
1 parent 067a2b2 commit 52ad263

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/Build/BuildOperationBuildSystemDelegateHandler.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ final class TestEntryPointCommand: CustomLLBuildCommand, TestBuildCommand {
216216
}
217217

218218
let testObservabilitySetup: String
219-
if self.context.buildParameters.experimentalTestOutput, self.context.buildParameters.triple.supportsTestSummary {
219+
if self.context.buildParameters.experimentalTestOutput
220+
&& self.context.buildParameters.targetTriple.supportsTestSummary {
220221
testObservabilitySetup = "_ = SwiftPMXCTestObserver()\n"
221222
} else {
222223
testObservabilitySetup = ""

Sources/Commands/SwiftTestTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public struct SwiftTestTool: SwiftCommand {
206206
let buildParameters = try swiftTool.buildParametersForTest(options: self.options, sharedOptions: self.sharedOptions)
207207

208208
// Remove test output from prior runs and validate priors.
209-
if self.options.enableExperimentalTestOutput, buildParameters.triple.supportsTestSummary {
209+
if self.options.enableExperimentalTestOutput && buildParameters.targetTriple.supportsTestSummary {
210210
_ = try? localFileSystem.removeFileTree(buildParameters.testOutputPath)
211211
}
212212

0 commit comments

Comments
 (0)