CRuntime can be removed
NSExceptional opened this issue · comments
Tanner Bennett commented
Simply include this function definition somewhere in this project:
@_silgen_name("swift_getTypeByMangledNameInContext")
func swift_getTypeByMangledNameInContext(
_ typeNameStart: UnsafeMutablePointer<Int8>,
_ typeNameLength: Int32,
_ context: UnsafeRawPointer?,
_ genericArgs: UnsafePointer<UnsafeRawPointer?>?
) -> UnsafeRawPointer?
Tanner Bennett commented
Closing this issue because it has occurred to me that using a bridging header is more formal than using the private @_silgen_name
Wes Wickwire commented
Back in swift 4.2 we had something similar to that for the swift_getFieldAt
call, which caused linking problems on linux. Moving it to a separate module was the ultimate fix.
Heres the thread: #18 (comment)
If we can remove it I'd love too though
Tanner Bennett commented
Yeah, sounds like what Joe told me. Relevant thread on the forums.