Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jun 10, 2021
1 parent 3b7b10d commit b0587d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pkg.platforms = [
]
pkg.swiftLanguageVersions = [.v5]

#if !os(Linux)
#if !os(Linux) && !os(Windows)
pkg.dependencies = [
.package(url: "https://github.com/AliSoftware/OHHTTPStubs", from: "9.1.0")
]
Expand All @@ -30,7 +30,7 @@ func has(tests name: String) -> Target? {
switch name {
case "PMKFoundation":
var deps = [Target.Dependency.target(name: "PMKFoundation")]
#if !os(Linux)
#if !os(Linux) && !os(Windows)
deps.append(.product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"))
#endif
return .testTarget(name: "\(name)Tests", dependencies: deps, path: "Tests/\(name)")
Expand All @@ -43,7 +43,7 @@ func has(tests name: String) -> Target? {

for name in ["PMKCloudKit", "PMKCoreLocation", "PMKFoundation", "PMKHealthKit", "PMKHomeKit", "PMKMapKit", "PMKPhotos", "PMKStoreKit", "PromiseKit"] {

#if os(Linux)
#if os(Linux) || os(Windows)
guard name == "PromiseKit" || name == "PMKFoundation" else { continue }
#endif

Expand Down
11 changes: 0 additions & 11 deletions Sources/PromiseKit/Guarantee.swift
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,3 @@ public extension Dispatcher {
return rg
}
}

#if os(Linux)
import func CoreFoundation._CFIsMainThread

extension Thread {
// `isMainThread` is not implemented yet in swift-corelibs-foundation.
static var isMainThread: Bool {
return _CFIsMainThread()
}
}
#endif

0 comments on commit b0587d2

Please sign in to comment.