You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
astrotuna201 opened this issue
May 16, 2017
· 1 comment
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of softwareSILGenArea → compiler: The SIL generation stage
_silgen_name is not intended for use outside the standard library. We cheat a little in our own tests, but it is completely unsupported and likely to break your project—the Swift calling convention is not the same as C's.
There is currently no supported way to provide a non-mangled name to a Swift function. There have been discussions about this on the swift-evolution list in the past, but no proposal has been accepted. See the Swift Evolution Process for more details.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of softwareSILGenArea → compiler: The SIL generation stage
Environment
OSX 10.12.4, standard Xcode 8.3.2 (8E2002).
Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)
Apple LLVM version 8.1.0 (clang-802.0.42)
Additional Detail from JIRA
md5: 3c2c2ea8e2df66798f2b603e44c0532f
Issue Description:
The following code does not compile with the current Xcode 8.3.2 (8E2002) swift compiler:
I need to provide a non-mangled name for calling into swift functions from a C project.
The text was updated successfully, but these errors were encountered: