Skip to content

Commit db36acf

Browse files
committed
Fix compilation with Swift 5.5
1 parent 5f235a0 commit db36acf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/DummySendable.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import Foundation
22
import os
33

44

5-
#if swift(>=5.5)
5+
/* Sendable exists from Swift 5.5, however OSLog is only Sendable starting from Xcode with at least Swift 5.8.
6+
* That being said, the Sendability issues regarding OSLog not being Sendable only trigger errors when compiling with Swift 5.5 exactly,
7+
* so we cheat and make a dummy Sendable protocol for Swift 5.5 too. */
8+
#if swift(>=5.6)
69
public protocol GHALogger_Sendable : Sendable {}
710
#else
811
public protocol GHALogger_Sendable {}

0 commit comments

Comments
 (0)