[swift-users] Help on how to compile a project.

Marcel Rebouças mscreboucas at gmail.com
Mon Feb 22 12:27:39 CST 2016


Hello Max and Dmitri, thank you very much for the response.

I'll try those steps/commands later tonight. I believe this will work for
me.

2016-02-22 15:13 GMT-03:00 Dmitri Gribenko <gribozavr at gmail.com>:

> On Mon, Feb 22, 2016 at 10:08 AM, Max Howell via swift-users
> <swift-users at swift.org> wrote:
> > So, first, I would like to know if there is a way to compile xcode
> projects
> > (and all classes within it) using the Swift version that I built from
> > sources.
> >
> >
> > Hi Marcel,
> >
> > I actually do this.
> >
> > What I did is:
> >
> > 1. Make a recursive copy of a xctoolchain.
> > 2. Replace all the parts in that new toolchain with symlinks to the built
> > versions
> > 3. Edit the Info.plist to give the toolchain a unique name
> >
> > It’s a hack, but currently it is otherwise quite problematic to build
> your
> > own toolchain. There is a ticket open to make the build-script capable of
> > this however, so hopefully this will be implemented.
>
> build-script can do this.  See my last comment in
> https://github.com/apple/swift/pull/1267 for an example.
>
> Dmitri
>
> --
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160222/44f85679/attachment.html>


More information about the swift-users mailing list