[swift-dev] Linker script on Linux
lukeh at padl.com
Wed Dec 30 19:49:30 CST 2015
> On 31 Dec 2015, at 12:33 PM, Joe Groff <jgroff at apple.com> wrote:
>> On Dec 30, 2015, at 1:24 AM, Luke Howard via swift-dev <swift-dev at swift.org <mailto:swift-dev at swift.org>> wrote:
>> Per [SR-404], anything that consumed libFoundation could not dynamically cast to a Foundation protocol because the build script was missing the magic swift.ld linker script to advertise the start of the protocol conformances table.
> Is it possible that the library is getting linked by clang instead of swiftc? I would expect the swiftc driver to pass the linker script down to ld (but maybe it's not).
You’re right, clang is being called to link. Changing to swiftc will be a bit more intrusive to the Foundation build scripts (at given my mediocre knowledge of Python) but is probably the right answer.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev