Skip to content

Commit ab1ca62

Browse files
committed
Fix Linux build compiler crash
Tracked on upstream with swiftlang/swift#71086
1 parent f7fa2d6 commit ab1ca62

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/OpenGraph/OGGraph.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import _OpenGraph
9-
import Foundation
109

1110
@_silgen_name("OGGraphArchiveJSON")
1211
@inline(__always)
@@ -21,6 +20,8 @@ public func graphCreate() -> UnsafeRawPointer?
2120
public func graphCreateShared(_: UnsafeRawPointer?) -> UnsafeRawPointer?
2221
2322
#if canImport(ObjectiveC)
23+
import Foundation
24+
2425
@_silgen_name("OGGraphDescription")
2526
@inline(__always)
2627
public func graphDescription(_ graph: UnsafeRawPointer? = nil, options: NSDictionary) -> UnsafeRawPointer?

Sources/OpenGraph/TODO/Attribute.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import _OpenGraph
22

33
@propertyWrapper
44
public struct Attribute<Value> {
5-
#if canImport(Darwin)
6-
// FIXME: Linux compiler will crash here
75
var identifier: OGAttribute
8-
#endif
96

107
public init() {
118
fatalError("TODO")

0 commit comments

Comments
 (0)