[swift-corelibs-dev] libdispatch module on Linux

Daniel Eggert danieleggert at me.com
Tue Jan 19 13:34:19 CST 2016


On 19 Jan 2016, at 20:22, Max Howell <max.howell at apple.com> wrote:
> 
>> How would I go about passing ‘-fblocks’ when building a module using ‘swift build’?
> 
> Since last week you can now: `swift build -Xcc -fblocks` and the build process will add those flags.
> 
>> Should I file a bug to track this?
> 
> There’s already a few open tickets for this topic. We’re planning a more thorough solution, the above it to allow workarounds.

Thanks.

I added a comment to https://bugs.swift.org/browse/SR-397 -- I think just having the _f variants working is totally fine. The block variants are nothing but a wrapper around them that can easily be re-created in Swift.

That approach would allow for a a different blocks ABI on Linux.

/Daniel



More information about the swift-corelibs-dev mailing list