Skip to content

address deprecation warnings #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/TSCUtility/Triple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ public struct Triple: Encodable, Equatable, Sendable {
}
}

@available(*, deprecated)
extension Triple {
/// The file prefix for dynamic libraries
public var dynamicLibraryPrefix: String {
Expand Down Expand Up @@ -290,6 +291,7 @@ extension Triple {
}
}

@available(*, deprecated)
extension Triple.Error: CustomNSError {
public var errorUserInfo: [String : Any] {
return [NSLocalizedDescriptionKey: "\(self)"]
Expand Down
1 change: 1 addition & 0 deletions Tests/TSCUtilityTests/PlatformTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import TSCTestSupport

@testable import TSCUtility

@available(*, deprecated)
final class PlatformTests: XCTestCase {
func testFindCurrentPlatformDebian() {
let fs = InMemoryFileSystem(files: ["/etc/debian_version": "xxx"])
Expand Down
1 change: 1 addition & 0 deletions Tests/TSCUtilityTests/TripleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import TSCUtility
import XCTest

@available(*, deprecated)
class TripleTests : XCTestCase {
func testTriple() {
let linux = try? Triple("x86_64-unknown-linux-gnu")
Expand Down