Skip to content

Commit

Permalink
fix linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rauhul committed Dec 15, 2024
1 parent c7961a9 commit 636ef66
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Tests/SVDTests/FileManager+Hashing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(System) && canImport(CryptoKit)
import CryptoKit
import Foundation
import System
Expand Down Expand Up @@ -71,3 +72,4 @@ extension FileManager {
return hash.finalize()
}
}
#endif
2 changes: 2 additions & 0 deletions Tests/SVDTests/SVDTestData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(System) && canImport(CryptoKit)
import CryptoKit
import Foundation
import MMIOUtilities
Expand Down Expand Up @@ -159,3 +160,4 @@ extension SVDTestData {
return Self(testSVDs: testSVDs)
}
}
#endif
5 changes: 1 addition & 4 deletions Tests/SVDTests/SVDTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
//
//===----------------------------------------------------------------------===//

#if os(macOS)
import CryptoKit
#if canImport(System) && canImport(CryptoKit)
import Foundation
import MMIOUtilities
import SVD
import Testing
import System

struct SVDTests {
static let testData = Task {
Expand Down
2 changes: 2 additions & 0 deletions Tests/SVDTests/String+Digest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//
//===----------------------------------------------------------------------===//

#if canImport(CryptoKit)
import CryptoKit

extension String {
Expand Down Expand Up @@ -41,3 +42,4 @@ extension String {
}
}
}
#endif

0 comments on commit 636ef66

Please sign in to comment.