Re: [swift-dev] Portable stdlib

2017-08-14 Thread Andy Best via swift-dev
Yes, exactly. Obviously you'd have to provide the necessary functionality for your own platform (e.g. malloc, free, putc, etc.) On Mon, 14 Aug 2017 at 6:54 pm, Slava Pestov wrote: > On Aug 14, 2017, at 9:44 AM, Andy Best via swift-dev > wrote: > > Hey, > > I'm cur

[swift-dev] Portable stdlib

2017-08-14 Thread Andy Best via swift-dev
Hey, I'm currently looking at building a portable version of the standard library (for targeting microcontrollers, kernel dev, etc). The easiest way to cross compile Swift at the moment (that I can find) is to get swiftc to generate LLVM IR (-emit-ir), and use clang to build and cross compile. Th

[swift-dev] Glibc modulemap- getxattr

2017-06-27 Thread Andy Best via swift-dev
Hey, While implementing some NSString based stuff in corelibs-foundation, I've found it necessary to use 'getxattr' from 'sys/xattr.h' to replicate Darwin functionality. I was wondering if there would be any objection to adding this to the Glibc modulemap? Cheers, Andy __