-
Notifications
You must be signed in to change notification settings - Fork 32
Description
I finally managed to get my own compiled version of the swift toolchain working with the help of your swiftc-android
script. I am now testing some code examples to see what works.
Compiling and linking multiple swift files seems to be fine.
Glibc seems to work fine (avoiding arc4_random of course ;) - pow, sqrt etc. at least..
The current issue is that even a simple enum like this one:
enum MusicalNote {
case C, Csharp, D, Dsharp, E, F, Fsharp, G, Gsharp, A, Asharp, B
}
causes a segfault at runtime on android, even if no enum members are instantiated (it is enough to just have the above in any file you compile). I wouldn't have a clue how to start tracking this down. Maybe I should rebuild a debug version of the toolchain to try to get some more information about the crash?
I also tested a struct conforming to CustomDebugPrintable and Equatable and also got a segfault. I haven't narrowed that case down yet but it may well be related.