Skip to content

Commit 4483995

Browse files
committed
address deprecation warnings
motivation: less warnings changes: deprecate Triple and Platform related tests and extensions given Triple and Platform have been deprecated
1 parent 71c91d0 commit 4483995

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Sources/TSCUtility/Triple.swift

+2
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ public struct Triple: Encodable, Equatable, Sendable {
235235
}
236236
}
237237

238+
@available(*, deprecated)
238239
extension Triple {
239240
/// The file prefix for dynamic libraries
240241
public var dynamicLibraryPrefix: String {
@@ -290,6 +291,7 @@ extension Triple {
290291
}
291292
}
292293

294+
@available(*, deprecated)
293295
extension Triple.Error: CustomNSError {
294296
public var errorUserInfo: [String : Any] {
295297
return [NSLocalizedDescriptionKey: "\(self)"]

Tests/TSCUtilityTests/PlatformTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import TSCTestSupport
1414

1515
@testable import TSCUtility
1616

17+
@available(*, deprecated)
1718
final class PlatformTests: XCTestCase {
1819
func testFindCurrentPlatformDebian() {
1920
let fs = InMemoryFileSystem(files: ["/etc/debian_version": "xxx"])

Tests/TSCUtilityTests/TripleTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import TSCUtility
1212
import XCTest
1313

14+
@available(*, deprecated)
1415
class TripleTests : XCTestCase {
1516
func testTriple() {
1617
let linux = try? Triple("x86_64-unknown-linux-gnu")

0 commit comments

Comments
 (0)