Skip to content

Commit 650620e

Browse files
authored
Update MySwiftLibrary.swift
1 parent a67441a commit 650620e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Samples/SwiftKitSampleApp/Sources/MySwiftLibrary/MySwiftLibrary.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,12 @@ func p(_ msg: String, file: String = #fileID, line: UInt = #line, function: Stri
5353
print("[swift][\(file):\(line)](\(function)) \(msg)")
5454
fflush(stdout)
5555
}
56+
57+
#if os(Linux)
58+
// FIXME: why do we need this workaround?
59+
@_silgen_name("_objc_autoreleaseReturnValue")
60+
public func _objc_autoreleaseReturnValue(a: Any) {}
61+
62+
@_silgen_name("objc_autoreleaseReturnValue")
63+
public func objc_autoreleaseReturnValue(a: Any) {}
64+
#endif

0 commit comments

Comments
 (0)