[swift-dev] Inability to leverage privacy in the stdlib

Slava Pestov spestov at apple.com
Fri Oct 28 17:43:54 CDT 2016


> On Oct 23, 2016, at 4:13 PM, Michael Gottesman via swift-dev <swift-dev at swift.org> wrote:
> 
> 
>> On Oct 23, 2016, at 3:30 PM, Alexis Beingessner via swift-dev <swift-dev at swift.org> wrote:
>> 
>> Dave pointed out to me this week that the build crashes if the stdlib tries to use private/fileprivate. I tried it myself and lo and behold the linker can't find the private symbols. He couldn't recall what about the build caused that, though.
>> 
>> Can anyone recall why this is? How hard is it to fix?
> 
> I am not 100% sure, but if it happens only with the stdlib and has to do with access control, I wouldn't be surprised if it has to do with -sil-serialize-all and friends. But I may be correct. I think Jordan is the right person to answer this question.
> 
> What do you think Jordan?
> Michael

Hi Alexis,

You can build the stdlib without sil-serialize-all now by passing a flag to build-script:

./utils/build-script — --swift-stdlib-enable-resilience

Give that a shot and see if it fixes the issues you’re having with ‘private’.

> 
>> _______________________________________________
>> swift-dev mailing list
>> swift-dev at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-dev
> 
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161028/7a2beb00/attachment.html>


More information about the swift-dev mailing list