<font size=2 face="sans-serif">I had a quick conversation with Daniel
Dunbar on this. Adding -Xcc -fblocks as a default option to Swift PM (on
Linux). The wrinkle is the availability of the blocks runtime - it would
either need to become a pre-req for Swift, or needs one to be built into
the package.</font>
<br>
<br><font size=2 face="sans-serif">Chris<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">David P Grove via swift-corelibs-dev
<swift-corelibs-dev@swift.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">Swift corelibs dev
<swift-corelibs-dev@swift.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">28/07/2016 18:50</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [swift-corelibs-dev]
Wrapping up Swift 3 for swift-corelibs</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif">swift-corelibs-dev-bounces@swift.org</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=3>Tony Parker wrote on 07/28/2016 01:41:55 PM:<br>
> <br>
> 1. Integrate swift-corelibs-dispatch into Foundation.</font></tt><font size=3><br>
</font><tt><font size=3><br>
Hi Tony,</font></tt><font size=3><br>
</font><tt><font size=3><br>
Hopefully this is on the task list already, but if it isn't we should add
it before it gets to be too late to change the compiler...</font></tt><font size=3><br>
</font><tt><font size=3><br>
When compiling a Swift program on Linux that imports Dispatch (or Foundation
once the integration is done), the user has to give the extra compilation
flags -Xcc -fblocks to enable block support.</font></tt><font size=3><br>
</font><tt><font size=3><br>
We really need to land a change somewhere so that either (1) blocks support
is always on for Linux or (2) importing Dispatch or Foundation automatically
turns on blocks support.</font></tt><font size=3><br>
</font><tt><font size=3><br>
I have some time today and tomorrow that I could use to work on this if
no one is handling it already, but I'm not sure how best to tackle the
problem. Suggestions?</font></tt><font size=3><br>
</font><tt><font size=3><br>
--dave</font></tt><font size=3><br>
</font><tt><font size=2>_______________________________________________<br>
swift-corelibs-dev mailing list<br>
swift-corelibs-dev@swift.org<br>
</font></tt><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><tt><font size=2>https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>